Jump to content
  • Advertisement
Sign in to follow this  

How to do a blocking accept with SDLNet?

This topic is 5398 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
Sign in to follow this  

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