connect and disconnect

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

connect and disconnect

跳至解决方案
990 次查看
jonasb
Contributor I

I wan't the board to auto connect to a server. Then he try's to autoconnect to the server for 18 times.

Then he gives an error that there is no memory left. I was searching and i
found he did an alloc. So he makes a reservation for some memory 18
times. I think i have to do something with free my memory. I found
something like TCB_FREE. I tried somethings but i still get acces
error.

 

another question:

How do I try to restart connection (sync) when the connection is closed by the server? The board seems to block.

And I have no clue how to solve it. 

 

Please help me

标签 (1)
0 项奖励
1 解答
306 次查看
jdog
Contributor I

you just have to work with m_delsocket(so) but you have to place this code somewhere where the socket is not used any more then you can delete it else you will get a acces error.

 

I think you have to place it somewhere in tcpapi.c

在原帖中查看解决方案

0 项奖励
1 回复
307 次查看
jdog
Contributor I

you just have to work with m_delsocket(so) but you have to place this code somewhere where the socket is not used any more then you can delete it else you will get a acces error.

 

I think you have to place it somewhere in tcpapi.c

0 项奖励