www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/01/02/20:27:05

Date: Wed, 3 Jan 1996 09:19:24 -0800 (GMT)
From: Orlando Andico <oandico AT gollum DOT eee DOT upd DOT edu DOT ph>
To: DJGPP Mailing List <djgpp AT delorie DOT com>
Message-ID: <Pine.SOL.3.91.960103091159.2587D-100000@gollum>
MIME-Version: 1.0

Hi everybody!
Happy new year!

I'd like to know if anyone out there is using Martin Granell's DJGPP port 
of Waterloo TCP/IP? If so, I'd really appreciate any help... I can't find 
any documentation for this *great* library, see... anyway:

The WATTCP functions are really similar to BSD Socket calls (but you 
should know that =) so I take my Unix-compiled program source, fix the 
spelling, and recompile it under DJGPP.

Now in Unix, you have something like:

  s = socket (...);
  b = accept (s, ...);

but in the Ping program which comes with WATTCP, there's an obscure 
function call like

  sock_init ();

I checked the source, and there's also a SockInit () function. (My Unix C 
program don't run under DJGPP BTW -- the accept () call fails.) I think 
one or both of these socket init functions must be called -- but which? 
I'm using 1.12m4 (gcc 2.6.3) on my PC, and gcc 2.6.3 for sparc on the 
Unix box. The Unix program works fine!

BTW (self-serving =) actually, I'm working on an HTTPd right now which I 
want to port to DOS using DJGPP. If you wanna check it out (Unix version 
works fine) URL is

http://gollum.eee.upd.edu.ph:9000/

Thanks!
Bye!

-- Orly
p.s. please respond to my email address if you've got lots to say =)

- Raw text -


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