Advertisement

WinSock2 questions - really simple READ ME!

Started by June 20, 2000 09:23 PM
10 comments, last by BeanDog 24 years, 5 months ago
Dont you use the winsock documentation??, it does not return true or false. =)

---- READ ----
If no error occurs, connect returns zero. Otherwise, it returns SOCKET_ERROR, and a specific error code can be retrieved by calling WSAGetLastError.

On a blocking socket, the return value indicates success or failure of the connection attempt.

With a nonblocking socket, the connection attempt cannot be completed immediately. In this case, connect will return SOCKET_ERROR, and WSAGetLastError will return WSAEWOULDBLOCK.
Ries
screw it. I''ll use MFC and do it in 8 lines of code.

This topic is closed to new replies.

Advertisement