--- In
hercules-390@..., "kerravon86" <kerravon86@...> wrote:
>
> yaya2.5 No error
> myflag 0
> last 10049
> yaya3 No error
> 1 file(s) copied.
>
> if (0
> || SOCKET_ERROR == connect( socket_vector[1], (SOCKADDR*) &localho
> || ((myflag = 7) != 7)
> || INVALID_SOCKET == (SOCKET)( socket_vector[0] = accept( temp_liste
> )
> {
> int nLastError;
> fprintf(stderr, "yaya2.5 %s\n", strerror(errno));
> fprintf(stderr, "myflag %d\n", myflag);
>
> showing that the error is on the connect, and it's
> equal to 10049.
Warren, the error is on that connect above.
> /usr/include/w32api/winerror.h:#define WSAEADDRNOTAVAIL 10049L
As per documentation:
http://msdn.microsoft.com/en-us/library/ms737625(VS.85).aspxIf the address member of the structure specified by the name parameter is all zeroes, connect will return the error WSAEADDRNOTAVAIL.
The reason it's zero, as per previous email, is
the getsockname() function appears to be allowed
to wipe out the address.
I'm not familiar with sockets so I don't know if
I'm misreading the doco.
I do know how to put in debug statements to track
down where it's falling over though. :-)
BFN. Paul.