Helle, when I want to connect somewhere it occours an error every time. althought it connect successfully.
What could that be ?
Posted on 2003-05-01 07:12:22 by Forginforcer
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:
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.
Posted on 2003-05-01 07:25:53 by gorshing
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 !
Posted on 2003-05-01 08:01:11 by Forginforcer
Once again....
What is your error return code? What about GetLastError?
Posted on 2003-05-01 12:14:48 by gorshing