Hi, how do I create a blocking CAsyncSocket? When I try to ReceiveFrom, it complains about WSAEWOULDBLOCK, meaning ReceiveFrom is blocking but the socket is not, but I don't know how to make the socket blocking.
I read the http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/HTML/_core_windows_sockets.3a_.blocking.asp
, it says I should avoid blocking operations. My another question is, how do I use the callback OnReceive in a seperate thread? I know I can redefine it, but I don't know how to make the framework to call it.
I want to use a seperate thread to receive fr the socket.