connect and disconnect

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

connect and disconnect

Jump to solution
981 Views
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

Labels (1)
0 Kudos
1 Solution
297 Views
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

View solution in original post

0 Kudos
1 Reply
298 Views
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 Kudos