🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
How to do a blocking accept with SDLNet?
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?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement