Mail Archives: djgpp/1999/11/12/19:01:43
Hello.
Gecko23 wrote:
> > I've got a C rogram called multiping that I managed to compile
> > and run on Solaris 2.6.
> >
> > Does anyone have any ideas of how to compile and run this program on
> > WIN32 systems ?
I believe this program will use raw sockets. You can't do raw sockets with
Winsock 1.x, but you can with Winsock 2. In practice this means that you
need Windows '98 or NT. You can get a Winsock 2 upgrade for Windows '95.
You may have to have administrator permissions to write raw sockets on NT,
but I'm not too sure about that.
> Well, you'll need a win32 compatible compiler, and possibly a
> sockets library.
You shouldn't need a socket library, since Windows has the Winsock API,
which is similar to Unix's BSD sockets - I recommend reading the Winsock
Programmers' FAQ to understand the differences & limitations.
> There are essentially 4 choices for a (free)C/C++ compiler for win32:
> MingW32, LCC-WIN32 (C only), Cygwin, RSXNTDJ.
> (all are gcc ports except LCC, it is from a different group)
Mingw32 and RSXNTDJ support Winsock. With Cygwin you can use BSD-style
sockets and Winsock calls, although I believe it's easier to use BSD
sockets. I think the port to Cygwin would be easiest.
Hope that helps.
--
Richard Dawe
richdawe AT bigfoot DOT com ICQ 47595498 http://www.bigfoot.com/~richdawe/
- Raw text -