[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
>
> #if HAVE_SYS_SOCKET_H
> #include <sys/socket.h>
> #include <netinet/in.h>
> #include <arpa/inet.h>
> #include <netdb.h>
> #include <sys/un.h>
> #endif
> #elif HAVE_WINSOCKET_H
> #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
pointer
type
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)
Nardy
- Re: Bug-gnubg] Winsock (Was: [Bug-gnubg] Multiprocessing), (continued)
- Re: Bug-gnubg] Winsock (Was: [Bug-gnubg] Multiprocessing), Olivier Baur, 2003/07/11
- Re: Bug-gnubg] Winsock (Was: [Bug-gnubg] Multiprocessing), Nardy Pillards, 2003/07/11
- Re: Bug-gnubg] Winsock (Was: [Bug-gnubg] Multiprocessing), Holger, 2003/07/11
- Re: Bug-gnubg] Winsock (Was: [Bug-gnubg] Multiprocessing), Olivier Baur, 2003/07/11
- Re: Bug-gnubg] Winsock (Was: [Bug-gnubg] Multiprocessing), Holger, 2003/07/11
- Re: Bug-gnubg] Winsock (Was: [Bug-gnubg] Multiprocessing), Holger, 2003/07/11
- Re: Bug-gnubg] Winsock (Was: [Bug-gnubg] Multiprocessing), Jim Segrave, 2003/07/09
- Re: Bug-gnubg] Winsock (Was: [Bug-gnubg] Multiprocessing), Nardy Pillards, 2003/07/09
- Re: [Bug-gnubg] Multiprocessing, Joern Thyssen, 2003/07/09
- Sockets [Was Re: [Bug-gnubg] Multiprocessing], Joern Thyssen, 2003/07/08
- Re: Sockets [Was Re: [Bug-gnubg] Multiprocessing],
Nardy Pillards <=
- Re: Sockets [Was Re: [Bug-gnubg] Multiprocessing], Olivier Baur, 2003/07/08
- Re: Sockets [Was Re: [Bug-gnubg] Multiprocessing], Joern Thyssen, 2003/07/09
- Re: Sockets [Was Re: [Bug-gnubg] Multiprocessing], Nardy Pillards, 2003/07/09
RE: [Bug-gnubg] Multiprocessing, Ian Shaw, 2003/07/08