This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Wierdness of WSASendTo()??
- From: Corinna Vinschen <cygwin at cygwin dot com>
- To: cygwin <cygwin at cygwin dot com>
- Date: Fri, 12 Apr 2002 13:41:38 +0200
- Subject: Re: Wierdness of WSASendTo()??
- References: <20020411170740.B20801@cygbert.vinschen.de> <200204111630.g3BGUbY24651@mx1.redhat.com>
On Thu, Apr 11, 2002 at 10:33:53AM -0600, Mark Paulus wrote:
> Ok, I have done some browsing, and now I'm totally
> confused.
>
> According to Microsoft, there are 2 headers and libraries:
> winsock.h
> Ws2tcpip.h
>
> Since I can seem to use the IP_HDRINCL macro, I am picking
> ws2tcpip.h file.
Don't include winsock.h and friends if you're using Cygwin sockets.
Just include <sys/socket.h> and all these POSIX schtuff.
If you don't get IP_HDRINCL included that way, it's a leak in
our headers (shouldn't that be in in.h?).
For testing, just define IP_HDRINCL as 2 in your source file.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/