Keil Logo Arm Logo

Discussion Forum

Context of tcp callback functions.

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Read-Only
Author
Martin Howell
Posted
2-Dec-2011 10:54 GMT
Toolset
ARM
New! Context of tcp callback functions.

I am using using RL-TCPNet without the RL-RTX multitasking library, in other words I am calling the Main_TcpNet() function at regular intervals within my code. Everything seems to be working ok, but I have a question:

Does the socket callback function get called from somewhere within the Main_TcpNet() function, or is it possible that it is called from a different context (ie from an interrupt or another task)?

I just need to know whether I need to be ensuring serial acces with global resources.

Read-Only
Author
IB Shy
Posted
2-Dec-2011 11:50 GMT
Toolset
ARM
New! RE: Context of tcp callback functions.

On a previous enquiry to the support desk they told me that the callback is executed from within the call to Main_TcpNet.

Read-Only
Author
Martin Howell
Posted
2-Dec-2011 12:04 GMT
Toolset
ARM
New! RE: Context of tcp callback functions.

Thanks for that, I assumed that was the case, but assumptions can get you into trouble!!

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Keil logo

Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.