Advertisement

Closing a connection to a server.

Started by April 18, 2002 06:52 AM
1 comment, last by ANSI2000 22 years, 9 months ago
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
Advertisement
Ok thats good to know...

Also what about the fact that sometimes, it "reconnects" right away but does not seem to send...

This topic is closed to new replies.

Advertisement