www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/15/11:25:56

Message-Id: <199810151522.AA18796@gateway.fedex.com>
Date: Thu, 15 Oct 1998 10:19:56 -0500
From: Walter Moore <wbmoore AT fedex DOT com>
Organization: Federal Express
X-Sender: "Walter Moore" <walter AT clover DOT c2d DOT fedex DOT com> (Unverified)
X-Mailer: Mozilla 4.04 [en]C-FedExIntl (Win95; I)
Mime-Version: 1.0
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
Cc: "djgpp AT delorie DOT com" <djgpp AT delorie DOT com>
Subject: Re: how to port TCP/IP client prog from UNIX
References: <Pine DOT SUN DOT 3 DOT 91 DOT 981015173630 DOT 16530A-100000 AT is>
Reply-To: djgpp AT delorie DOT com

Eli Zaretskii wrote:
> 
> On Thu, 15 Oct 1998, Walter Moore wrote:
> 
> > I'm trying to port a TCP/IP client that I wrote from
> > UNIX to the PC. I would like to make use of the
> > Winsock.dll provided with win95 or win98, so I do
> > not have to install anything else on the users' PCs.
> > This would also allow me to not have to have multiple
> > TCP/IP configurations also. Can I do this?
> 
> It is usually a good idea to look in section 22.3 of the 
> DJGPP FAQ list (v2/faq211b.zip) which lists some packages 
> people keep asking for.  In this case, it describes a couple 
> of libraries that will alow to access Winsock from a DJGPP program.  
> Note that these do not work with Winsock2 yet, so Windows 98 is 
> currently not supported.

Thanks for the response, I truly appreciate it.
I was incomplete in my message. 

I had already looked at the packages mentioned in 
section 22.3 of the DJGPP FAQ list (v2/faq211b.zip),
but each of those, from the documentation, seem to 
require a separate configuration of TCP/IP from what 
has already been done in Win95 (if I am incorrect, 
someone please correct me). My users are not 
technical by any stretch of anyone's imagination. As
such, I want to avoid having them do anything more 
than copy the file from a server and put it where it
needs to go. I also want to avoid running separate 
TCP/IP stacks. I was under the impression the only 
way to accomplish each of these tasks was to use 
the winsock.dll that comes with win95 (Again, if I 
am wrong, please correct me). I currently have no 
clients less than win95, although its likely I will 
end up with Win/NT and Win98 clients in the not too 
distant future. I'm hoping that by dynaimcally linking
to the winsock.dll provided by MS, I will avoid having \
to compilations (or ports) separate versions of the client.

> > Is there a way to dynamically link a djgpp program
> > with the winsock.dll?
> 
> You need to create a native Win32 program for this.  
> Either use RSXNTDJ add-on or switch to one of the Win32 
> compilers.  See section 3.6 of theFAQ for more details and URLs.

Thank you! May I suggest an addition to the FAQ about issues
involved in a port from Unix to MS-Dos/Win95/Win98? This 
would include issues like the different packages for sockets 
that require separate configuration, as well as the Win32 
program issue, and any gotchas like whether the use is 
WSAStartup() and associated routines are needed, or suggested.

Walter

- Raw text -


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