CAsyncSocket blockieren
-
Hallo
Ist es möglich, ein CAsyncSocket Objekt dazu zu bringen, dass es sich bei Connect() genauso verhält, wie ein CSocket Objekt, also blockierend, sodass die Connect() Funktion erst returned, wenn die Verbindung auch steht.
Danke schon mal!
-
The WSAAsyncSelect function automatically sets socket s to nonblocking mode, regardless of the value of lEvent. To set socket s back to blocking mode, it is first necessary to clear the event record associated with socket s via a call to WSAAsyncSelect with lEvent set to zero. You can then call ioctlsocket or WSAIoctl to set the socket back to blocking mode.