WSAAccept is always blocking
Hi there, I am writing on a TCP class and noticed that even though my stream socket is created with the "Overlapped" option, it blocks when calling WSAAccept. I read the documentation over and over again and put together the following stuff: - WSAEWOULDBLOCK The socket is marked as nonblocking and no connections are present to be accepted. (That is what I expected in the first place) - A socket in nonblocking mode (blocking) fails with the error WSAEWOULDBLOCK when an application calls WSAAccept and no connections are pending on the queue. (Why does it say nonblocking and then blocking ?) - WSA_FLAG_OVERLAPPED This flag causes an overlapped socket to be created. Overlapped sockets can utilize WSASend, WSASendTo, WSARecv, WSARecvFrom, and WSAIoctl (But no WSAAccept ???) Maybe someone can give me some feedback on this. Thanks alot. Lorenz
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement