Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

ANSI2000

Closing a connection to a server.

This topic is 6056 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement
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.

Share this post


Link to post
Share on other sites
Ok thats good to know...

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

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!