www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/04/25/16:40:21

Xref: news2.mv.net comp.os.msdos.djgpp:3121
From: mag1007 AT hermes DOT cam DOT ac DOT uk (Martin Granell)
Newsgroups: comp.os.msdos.djgpp
Subject: TCPIP lib - update coming..
Date: 25 Apr 1996 06:18:20 GMT
Organization: University of Cambridge, England
Lines: 33
Message-ID: <4ln5fc$b1g@lyra.csx.cam.ac.uk>
Reply-To: mag1007 AT hermes DOT cam DOT ac DOT uk
NNTP-Posting-Host: pch01.pet.cam.ac.uk
Summary: Update for TCPIP lib
Keywords: TCPIP library
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hi,
	The TCPIP library as it stands at the moment is not very easy to
use :P I basically adapted Michal Furmanczyk's port of wattcp to djgpp
in order to run a unix based program. As such it only required non-blocking
socket IO for TCP apps.
	I intended to add to the library over the summer, but I started 
doing a lot of programming in Linux, and so as such did not have the need
for a DOS based tcp library.
	Anyway, enough history... I've started re-porting the library, using 
a more uptodate version of the 16 bit wattcp library. After my finals (in 6
days :P) I'll be finishing the port (all things being well). What I want
to do is split the library into three interfaces:
	1) Unix type sockets, blocking and non-blocking for porting of unix
based apps to DOS
	2) The original wattcp interface.
	3) The winsock specification, which is similar to the unix sockets.

	I'm not sure what the best way to do this is. Should there be three
libraries, with header files for the three different interfaces (As some
of the functions have the same name but differing arguments and responses).
Should there be a set of defines, which rename the differing functions, such
as get_host_by_name to wattcp_get_host_by_name and unix_get_host_by_name, and
then just have one library. Or is there a better way of doing it.
	If anyone else has worked on the library, or has sample code snippets
which could be included as examples of using the library, could you please
send them to me, for inclusion in the next release. (Only a year later than
expected :P)

		Yours,

			Martin (Cramming like mad...)


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019