Recommended Posts

Does anyone know where I can find a non-blocking socket tutorial? I have looked around and I can only find blocking and asychronous. I have to use non-blocking because my program is a console app, so asychronous won''t work with it.

Share this post

Link to post

Share on other sites

select is async...and multithreading might be an unessesary step. Check out fcntl(). And also, there is no reason at all why you cant use async in a console app. While windows apps use WSAAsyncSelect(), a console app can implement the BSD select() call just like in a *nix app.