RTCS_detachsock() problem

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

RTCS_detachsock() problem

跳至解决方案
1,113 次查看
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

 

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
882 次查看
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 项奖励
回复
1 回复
883 次查看
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 项奖励
回复