Jump to content
  • Advertisement

Archived

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

kuphryn

Reset Socket w/o Disconnection :: Winsock

This topic is 5809 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

Hi. I would like to is there a way to "reset" a active socket during data transfer without disconnecting it from the server or client? For example, given a socket is connected to www.google.com and is processing incoming data. Now the program wants to stop all data transfer at a given moment without disconnecting from Google. One reason is time and speed. Stopping data tranfer via disconnection takes time because the program has to then reconnect to the server or client. Thanks, Kuphryn

Share this post


Link to post
Share on other sites
Advertisement
No, I don''t think there''s any way to do this. You''d have to call closesocket() and then connect to the server from scratch. It shouldn''t take too long provided you avoid host name lookups.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!