In what context are the TCP Receive Callbacks Called?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Can someone tell me in what context the RX TCP callback is called ( set via wiced_tcp_register_callback). Also is this only available on Lwip and NetXDuo ( not on NetX) ? What are the constraints on the callback if any ?

Thanks

Kartik   

0 Likes
1 Solution
GregG_16
Employee
Employee
50 sign-ins 25 sign-ins 25 comments on KBA

TCP callbacks are called from the Networking worker thread. Basically it would not be called from the context of the application. It is available on NetX also. Since this is called from another context, you need to ensure that any data accessed both by app thread and the call back are properly handled.

View solution in original post

0 Likes
2 Replies
Anonymous
Not applicable

This question has been answered. The callback is called in the context of the networking thread.

0 Likes
GregG_16
Employee
Employee
50 sign-ins 25 sign-ins 25 comments on KBA

TCP callbacks are called from the Networking worker thread. Basically it would not be called from the context of the application. It is available on NetX also. Since this is called from another context, you need to ensure that any data accessed both by app thread and the call back are properly handled.

0 Likes