TCP/IP client disconnects but the server is not notified


#1

Hello…

I am using the WIP plug in to create a TCP client connection. The problem I am facing is that when the client disconnects the TCP server is not notified (which is really a problem for my application)… I tried using wip_shutdown() function as well as wip_abort() before using wip_close() but although they return 0 (success) the server is not notified that the client is disconnected… There is no problem on the server side (when I use HyperTerminal, for example, as the TCP client the server is notified when the client is disconnected).

In the wip_abort() and wip_shutdown() documentation it is mentioned that both functions cause an error at the peer socket but I receive no such error on the server side…

Any hints would be appreciated…

Thanks a lot…

George Savidis


#2

Hello again…

I figured it out…
The problem was that I called wip_close() function right after wip_shutdown()…
After calling function wip_shutdown() application should wait for WIP_CEV_PEER_CLOSE
event and after that it can call wip_close() function…

Take care…