🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #3305

Re: Socket call in Window 3.0 program

#3305
From: Ed Schwalenberg
Date: Wed, 19 Jun 1991 14:15
23 lines
1600 bytes
  From: angck@nixsin.UUCP (Ang Chee Keong)
  Date: 19 Jun 91 05:42:54 GMT

  Hello world.  I am trying to incorporate socket call in a 'C' program written
  for Windows 3.0.  The program aborted once it use the socket call statement.  
  What I have on my PC is Windows 3.0 SDK, SUN PC-NFS Programmer's Toolkit 
  Version 1.00, and Microsoft 'C' 5.1.

  Is there any way I could make the socket system call works under Windows 3.0.

I've been able to get this to work, but only with great pain.  The trick
is to make a TSR which holds the PC-NFS code, and call the TSR from Windows.
In order to do that, you have to allocate a buffer with GlobalDOSAlloc,
copy all the arguments into that buffer, call the TSR, copy all the return
values back into the buffer, and return to Windows.  It's a lot of work,
very hard to get right, and it's very slow.

I haven't found other vendors yet with socket libraries for Windows.
I saw an ad for some company, but it wasn't yet released and had high
per-user royalties.

If there's a better way, I'd sure like to know about it.
Technical Details
Message-ID: <1991Jun19.141519.5669@odi.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!aplcen!aplcomm!uunet!odi!ed
References: <1995@nixsin.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!aplcen!aplcomm!uunet!odi!ed
From: ed@odi.com (Ed Schwalenberg)
Newsgroups: comp.windows.ms.programmer
Subject: Re: Socket call in Window 3.0 program
Message-ID: <1991Jun19.141519.5669@odi.com>
Date: 19 Jun 91 14:15:19 GMT
References: <1995@nixsin.UUCP>
Organization: Object Design, Inc.
Lines: 23
In-Reply-To: angck@nixsin.UUCP's message of 19 Jun 91 05:42:54 GMT
Fcc: /usr1/ed/mail/sent-archive.babyl