Helle, when I want to connect somewhere it occours an error every time. althought it connect successfully.
What could that be ?
What could that be ?
Well if you are connecting successfully, then I'm surprised you are getting an error.
What is your error return code? What about GetLastError?
Because if you are using nonblocking sockets, the connect function might return WSAEWOULDBLOCK.
Quote from MSDN:
What is your error return code? What about GetLastError?
Because if you are using nonblocking sockets, the connect function might return WSAEWOULDBLOCK.
Quote from MSDN:
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.
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.
when i connected, i gat no message.
invoke connect...
.if eax==NULL
invoke MessageBox, NULL, ADDR ConMess, ADDR ConMess, NULL
.endif
But im connecetd. I use socket stream
Bye !
invoke connect...
.if eax==NULL
invoke MessageBox, NULL, ADDR ConMess, ADDR ConMess, NULL
.endif
But im connecetd. I use socket stream
Bye !
Once again....
What is your error return code? What about GetLastError?