delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1996/12/03/02:33:53

From: sos AT prospect DOT com DOT ru (Sergey Okhapkin)
Subject: RE: Sockets in gnu-win32
3 Dec 1996 02:33:53 -0800 :
Sender: daemon AT cygnus DOT com
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <01BBE111.72BE0510.cygnus.gnu-win32@bbs.prospect.com.ru>
Original-To: Geoffrey Noer <noer AT cygnus DOT com>,
"'David Makepeace'"
<D DOT Makepeace AT mailbox DOT uq DOT oz DOT au>
Original-Cc: Sergey Okhapkin <sos AT prospect DOT com DOT ru>,
"gnu-win32 AT cygnus DOT com"
<gnu-win32 AT cygnus DOT com>
Encoding: 21 TEXT
Original-Sender: owner-gnu-win32 AT cygnus DOT com

David Makepeace wrote:

>Would it be possible to change cygwin.dll to link to winsock.dll via
>LoadLibrary() and GetProcAddress()?

It is not necessary.
>
>This way cygwin.dll could export foo instead of cygwin32_foo, those nasty
>#defines could go and there would be no problems with multiple
>definitions.  If necessary, it would even be possible to use WinSock
>directly (by putting it on the link line before -lcygwin) without any
>problems - other than the usual WinSock problems.
:-)

There aren't any problems with function names, because cygwin.dll will 
export unix names of socket functions (socket(), for example), but 
wsock32.dll exports WINAPI-compatible names (socket AT 12()).


Sergey Okhapkin
Moscow, Russia

-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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