Closing a connection to a server.
Am conecting my client application through a VPN and firewalls to a server somewhere around the world...
Here is the problem...
My application connects to the server and begins to send and receive data... So I know for a fact that the VPN and firewalls are configured and working well...
When I shutdown my application I call shutdown(sock, SD_BOTH) and closesocket(sock). The other side has confirmed that there server application is back on an active state listening for connections.
Now sometimes if I try to reconnect, just by restarting the app, the application is unable to reconnect. Or the application will reconnect but any data it sends will not go through to the other side as the other side confirms not receiving anything....
Am using Winsock2 and Win2000 server to run my app.
Thanks
Some firewalls, for security reasons, do no allow more than one connection on a certain port to be made within a time period. So although your first connection gets through the second will be blocked.
Martin Piper
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement