Hi,
I try using RTCS_detachsock() to detach a socket from a task, But I feel that this function doesn't work at all.
When I call this function, it always returns 0 (RTCS_OK), but the task still see the detached socket.
I study the MQX's source then feel that the default setting of MQX just disable this function:
In the file ..\MQX3.8\rtcs\source\if\sockutil.c, the function SOCK_Remove_Owner() does nothing and return TRUE all the time, since RTCSCFG_SOCKET_OWNERSHIP =0 (As defualt of MQX).
Has anybody used this function before?
I am using MQX3.8 RTCS and M52259.
Thank you,
Weining
Solved! Go to Solution.
Well i followed the example in rtcs documentation and the function does work .i am using it to create another task and the main task goes back to listen on socket again . I am using mqx 3.7 with kinetics k60
Well i followed the example in rtcs documentation and the function does work .i am using it to create another task and the main task goes back to listen on socket again . I am using mqx 3.7 with kinetics k60