Jump to content
  • Advertisement

Archived

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

KaneBlackflame

Can you thread CSocket?

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

I am trying to work on the multiplayer side of my game by hand. I plan on running a central reporting server. When you want to join a net game, the app connects to the server and pulls down the current games. The app then tries to connect to those games through a socket to verify they are still running and get the current status. Unfortunetly, I don''t want to take hours to do this if there are 1000 games going. So I tried threading the connections to speed up the process, doing 20 threads. But after a few connections have been made, the CSocket Connect() function fails, crashing here: ASSERT(pState->m_hSocketWindow != NULL); in the function BOOL CSocket:umpMessages(UINT uStopFlag). This occurs a few runs into the thread, so I know it gets past here with no troubles to start. This function after Connect() and ConnectHelper() and is not somewhere I can catch an error. All I know is it''s failing. If I don''t thread it, it works fine, so I assuming it has something to do with the threads. Anyone know what is up? "Victims...aren''t we all?" -Brandon Lee, the Crow

Share this post


Link to post
Share on other sites
Advertisement

  • 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!