Mail Archives: djgpp/1997/12/02/01:49:27
In article <3483A49E DOT 30A4 AT mailexcite DOT com> on comp.os.msdos.djgpp
Blueshade wrote:
: Does anyone happen to know the location of the source code for any chat
: type programs? I don't mean Java source or something like that, but I
: mean in C (using, obviously, DJGPP). I am attempting to program an
: online game that would use this concept, and I need to find some code.
: Please respond via e-mail. Thanks...
[to BlueShade and the list:]
libnet has a chat server and client as an example program, in the
tests/chat directory. It's a bit broken at the moment; it will work
fine if all your IP address components are <128 (i.e. for localhost).
Compiling (everything, the library too) with -funsigned-char should
produce a working setup. I'll fix the source ASAP.
[to the list:]
For those who do not know, libnet is a generic network programming
library (under construction), intended to provide a (limited) set of
networking routines which are consistent across a variety of network
types. You can get an old version with full (accurate) documentation
from http://www.canvaslink.com/libnet/, and a newer version with a
slight enhancement and the aforementioned chat program from
http://users.ox.ac.uk/~mert0407/libnet.zip. The new version is far
more useful, since it allows binding to a specific port.
The interface is due to change slightly (more functions will be added,
the new net_openinputchannel function's syntax will probably change
slightly), the docs will be updated (they're not accurate for the
newest version) and hopefully IPX and DOS PPP drivers will be added
shortly.
Please do try it out and let us know what you think. At this stage we
reserve the right to change the interface in any way, so don't get too
attached to it :). We probably won't need to make any really major
changes, though. This software is very pre-release.
Thanks.
--
george DOT foot AT merton DOT oxford DOT ac DOT uk
- Raw text -