Hello Nigel,
There is a cut & paste error in my example.
I analyzed better my code:
The mySocket.Connect() function always returns FALSE and the last error code vary between 10022 and 10035.
I tried it with verified IP addresses and ports.
But, sometime, the socket is connected properly and I can work with.
A return value of 10035 is not an error. It is to be expected.
It is WSAEWOULDBLOCK which means that the requested
operation would block and this is a non-blocking socket. The operation will be completed latter and your program will be
notified with the OnConnect callback.
Wakeup in the morning and kick the day in the teeth!! Or something like that.
"i don't want to write leak free code or most efficient code, like others traditional (so called expert) coders do."
Bookmarks