From: mert0407 AT sable DOT ox DOT ac DOT uk (George Foot) Newsgroups: comp.os.msdos.djgpp Subject: Re: TCP/IP Date: 10 Oct 1997 13:22:47 GMT Organization: Oxford University, England Lines: 31 Message-ID: <61la77$d1b$1@news.ox.ac.uk> References: <01BCD31E DOT 1B0010C0 AT h-d-06> NNTP-Posting-Host: sable.ox.ac.uk To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Paul Clancy (pclancy AT gnc DOT co DOT uk) wrote: : Has anyone got any working code to do some TCP/IP functions from a DOS box : using a Win95 DUN connection? Sure; what do you want? :) For starters, there's the little Web server Dan Hedlund provides with his wsock library. This only demonstrates the server side of a TCP connection, though. I have examples (for example, chat programs) using either UDP or TCP from either Dan Hedlund's C++ library (http://www.rangenet.com/markiv/wsock.html) or my C translation of that library (let me know if you want it). If you don't know how to program with sockets yet, it would be wise to read through some documentation of that first. I started writing a tutorial for Dan's wsock library once (I kind of like writing tutorials, I suppose...) but it's incomplete. If anyone would like copies of these examples, please let me know. One notable thing they don't demonstrate is OOB messaging over TCP; this is fairly trivial. You just put MSG_OOB in the flags field of send or recv, and you'll send/recv from the OOB queue instead of the regular queue. If you set the option to receive OOB messages inline, of course, you'll receive them without specifying MSG_OOB anyway. -- George Foot Merton College, Oxford