- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Labels:
-
TCPIP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This question has been answered. The callback is called in the context of the networking thread.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.