[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Sockets [Was Re: [Bug-gnubg] Multiprocessing]
From: |
Joern Thyssen |
Subject: |
Sockets [Was Re: [Bug-gnubg] Multiprocessing] |
Date: |
Tue, 8 Jul 2003 16:49:01 +0000 |
User-agent: |
Mutt/1.4.1i |
On Tue, Jul 08, 2003 at 03:21:04PM +0200, Nardy Pillards wrote
> > >
> > >libwsock32.a, libmswsock.a and mswsock.h are within MinGW.
> > >http://tangentsoft.net/wskfaq/examples/basics/index.html (example
> makefile)
> > >
> > >so are winsock.h and winsock2.h
> > >
> > >
> > Yes, I know. I've done applications with winsock earlier with the mingw
> > compiler.
>
> .c sources, .h headers:
> inserted #if WIN32 with <winsocket.h> in stead of the 'BSD-like' socket.h
> lines
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
- Re: Bug-gnubg] Winsock (Was: [Bug-gnubg] Multiprocessing), (continued)
- 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), 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 <=
- Re: Sockets [Was Re: [Bug-gnubg] Multiprocessing], Nardy Pillards, 2003/07/08
- 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