This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Wierdness of WSASendTo()??


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]