Jump to content
  • Advertisement
Sign in to follow this  
Dascolino

How to do a blocking accept with SDLNet?

This topic is 5035 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 all! I'm starting to write stuff with SDL but I'm facing a problem with my client/server connection class everything works fine except for SDLNet_CheckSockets() it blocks the flow as expected but it doesn't unblocks it upon incoming connections (I assume it would be supposed to unblock since the documentations talks about connections) listening socket should be alright: I get no errors and I initialize it with a NULL resolved host so it should be recognized as a server also, I've taken a look at the sorces and it uses a simple select so it should work O_o just to test it I've tried to simply loop a SDLNet_Accept() and it works fine, I can even send and recv data correctly am I missing something?

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

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