[3994] in comp.os.os2.announce archive
INFO: Pleasant surprise... win32 to OS/2 porting (internet)
daemon@ATHENA.MIT.EDU (Carlos Portela)
Tue Apr 14 02:27:20 1998
To: os2ann.DISCUSS@bloom-picayune.MIT.EDU
Date: 11 Apr 1998 15:06:00 -0500
From: cportela@simple-sw.com (Carlos Portela)
Reply-To: cportela@simple-sw.com
Reply-to: cportela@simple-sw.com
[Followups directed to comp.os.os2.programmer.porting]
---------------------------------------------------------------------
Hi All,
I thought I'd shared our experience with sockets under Warp4. We developed
several Win32 modules using Winsock and took them to a Warp4 machine. We
then included "pmwsock.h" instead of "winsock.h", and amazingly it all
compiled clean and, even better, it ran perfectly!
We found that gethostname() does not work but we found a workaround creating
a temporary UDP socket and then querying the socketname as suggested on page
244 of "Windows Sockets Network Programming" by Quinn Shute.
Oh, I almost forgot, you need to link with \toolkit\lib\pmwsock.lib.
--
Carlos Portela
Simple Software Solutions, Inc.
http://www.simple-sw.com
[Snips from reply to Moderator followup email]
> 1) I'm still running Warp 3. Any idea on winsock compatibility bewtween Warp
> 3 and Win32?
Unfortunately I don't know. It works beautifully on Warp 4 though.
>
> 2) Is the win32 winsock the winsock 1.1 calls or the winsock 2.0 calls? I
> think the WS 2 calls are mostly for LSP support, which I doubt would be
> usable in a Warp machine.
That, I don't know either. We are making very basic socket calls such as
bind, connect, recv, send, setsockopt, etc, etc. All those are fully
supported.
> 3) Are the libraries and *.h files part of the standard warp 4 distribution?
> if not where can one obtain them?
Yes they are part of the Warp4 Toolkit.
_____________________________________________________________________
| NOTE: Please EMAIL submissions to comp-os-os2-announce@moderators.isc.org
| Correspondence to the COOA Moderator: lfirrantello@bix.com .
| Please see: http://www.bix.com/pub/os2ann/pindex.htm for posting guidelines