www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/06/20/16:01:55

From: sos AT prospect DOT com DOT ru (Sergey Okhapkin)
Subject: RE: mingw32 sock-faq examples?
20 Jun 1998 16:01:55 -0700 :
Message-ID: <01BD9C89.C332C960.cygnus.gnu-win32@sos>
To: "gnu-win32 AT cygnus DOT com" <gnu-win32 AT cygnus DOT com>,
"'Laszlo Vecsey'"
<master AT internexus DOT net>

Laszlo Vecsey wrote:
> I'm using the stock egcs-mingw32 distribution from cygnus, linking the
> examples against -lwsock32 (including windows.h and windows32/sockets.h),
> but listen(), accept(), connect() etc are always failing with -1.
> gethostname() also doesnt work, though IP addresses seem ok.
> 

You have to call WSAStartup() first.

-- 
Sergey Okhapkin, http://www.lexa.ru/sos
Moscow, Russia


-
For help on using this list (especially unsubscribing), 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