[Top][All Lists]

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

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

From: Nardy Pillards
Subject: Re: Sockets [Was Re: [Bug-gnubg] Multiprocessing]
Date: Tue, 8 Jul 2003 21:21:40 +0200

From: "Joern Thyssen" <address@hidden>
Subject: Sockets [Was Re: [Bug-gnubg] Multiprocessing]

> Now that we have sockets support for windows, it might be worthwhile to
> make the external player and the random.org RNG support.
> What is needed? Is it just
> #include <sys/socket.h>
> #include <netinet/in.h>
> #include <arpa/inet.h>
> #include <netdb.h>
> #include <sys/un.h>
> #endif
> #include <winsocket.h>
> #endif
> (assuming we define a HAVE_WINSOCKET_H in config.h)
> Are there any other changes needed?
> Jørn

it's :
#include <winsock.h>
(my error in my previous post)

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
external.c:86: warning: implicit declaration of function `inet_aton'
external.c:111: dereferencing pointer to incomplete type
external.c:112: dereferencing pointer to incomplete type
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)


reply via email to

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