> It very probably not returing any error by WSAGetLastError, just by
> bind return value.
>
> But MSDN says:
> "If no error occurs, bind returns zero. Otherwise, it returns
> SOCKET_ERROR, and a specific error code can be retrieved by calling
> WSAGetLastError."

hmmmm I'm thinking WSAGetLastError is flakey, or WSAGetLastError being reset
somehow.

>
> Ah, I see, you calling Bind call twice in your test code... try next
> modification:

That's what I tried a few seconds after.. silly me..

>
>       tmpdbg:= synsock.Bind(FSocket, Sin);
>       SockCheck(tmpdbg);
>       writeln('DEBUG 1: ', tmpdbg);
>       writeln('DEBUG 2: ', FLastError);
>

Still the same..

DEBUG 1: -1
DEBUG 2: 0





-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to