Comments: Authenticated sender is From: "George Foot" To: Strider Centaur Date: Mon, 28 Dec 1998 20:31:15 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: using socket with DJGPP + sending at comands to modem CC: djgpp AT delorie DOT com X-mailer: Pegasus Mail for Win32 (v2.42a) Message-Id: Reply-To: djgpp AT delorie DOT com 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