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


Sergey Okhapkin
Moscow, Russia

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