Sign in to follow this  

How to do a blocking accept with SDLNet?

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

This topic is 4816 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this