Mail Archives: djgpp/1998/12/28/15:31:46
On 28 Dec 98 at 14:50, Strider Centaur wrote:
> Is this as easy as just calling the sock routines or do you still have to
> setup the Winsock Callback? That's the part I would expect to be harder to
> deal with. I, for the most part, find windows to be a major pain to code
> in. But then again I am biased. :-)
For the most part you can just use the functions like Berkeley
socket functions. You must initialise the Winsock first, and
shut it down afterwards. A few data types change (you should
use `SOCKET', not `int', for the socket handles) and some
functions are renamed. You can't treat sockets as files.
However, it's not too difficult to live with these limitations.
The latest prerelease of Libnet contains a Winsock driver for
djgpp+RSXNTDJ; you can look at this to see what sort of things
you need to do to make it work.
http://www.canvaslink.com/gfoot/libnet/
There you will find a .tar.gz and a .zip. The content is
identical.
--
george DOT foot AT merton DOT oxford DOT ac DOT uk
- Raw text -