[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sockets [Was Re: [Bug-gnubg] Multiprocessing]

From: Olivier Baur
Subject: Re: Sockets [Was Re: [Bug-gnubg] Multiprocessing]
Date: Wed, 9 Jul 2003 04:38:43 +0200

Le mardi, 8 juil 2003, à 21:21 Europe/Paris, Nardy Pillards a écrit :

external.c, external.h need changes too.

compiling external.c with HAVE_(WIN)SOCKET_H
gives this error:

external.c: In function `ExternalSocket':
external.c:74: warning: passing arg 4 of `setsockopt' from incompatible
pointer type

setsockopt is declared as:
        int setsockopt (int socket , int level , int option_name ,
             const void * option_value , socklen_t option_len );

and is used:
        f = TRUE;
        if( setsockopt( h, SOL_SOCKET, SO_REUSEADDR, &f, sizeof f ) )
            return -1;

What is the winsocket prototype?
Maybe you can try and cast &f to (const void *)?

external.c:86: warning: implicit declaration of function `inet_aton'

Check that <arpa/inet.h> is included.

external.c:111: dereferencing pointer to incomplete type
external.c:112: dereferencing pointer to incomplete type

Maybe local domain sockets (UNIX paths) are not supported under winsocket. You should try and place the code in the else { ... } section that causes this error by:
#if WIN32
        return -1;
        /* code from lines 103-114 */

external.c: In function `ExternalRead':
external.c:149: `SIGPIPE' undeclared (first use in this function)
external.c:149: (Each undeclared identifier is reported only once
external.c:149: for each function it appears in.)
external.c: In function `ExternalWrite':
external.c:196: `SIGPIPE' undeclared (first use in this function)

Check that <signal.h> is included.

Hope this helps.

-- Olivier

reply via email to

[Prev in Thread] Current Thread [Next in Thread]