RTCS_detachsock() problem

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

RTCS_detachsock() problem

ソリューションへジャンプ
1,114件の閲覧回数
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 解決策
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 件の賞賛
返信
1 返信
884件の閲覧回数
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 件の賞賛
返信