End Google Ads 201810 - BS.net 01 --> Hello,

I'm trying to write a asynchronous server that accepts (non-blocking) clients receives data from the client and reponds.

I have managed to write and get it to work a single threaded server blocking & a multithreaded server that blocks also. But now I have to make one that doesn't block and only a single thread.

I know that I setup the socket to async mode with ioctlsocket(). but after that how do I do a non-blocking
listen() & accept(). Also I have been reading that I need to use select() for when a client needs to read, write, etc...

I have been staring at the following example at CP (Code Project) at Programming Windows TCP Sockets in C++ for the Beginner[^]

which is a great example, but mine is console based. So I understand that code for the most part. But since I'm not use MFC with it just C or C++ it is a little a different and I could really use some help. any help will be greatly appreciate, and ty in advance.
Gemini S....