RTCS_detachsock() problem

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

RTCS_detachsock() problem

Jump to solution
748 Views
Weining
Contributor III

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

 

Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
517 Views
mohwaqas12
Contributor III

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

View solution in original post

0 Kudos
Reply
1 Reply
518 Views
mohwaqas12
Contributor III

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

0 Kudos
Reply