Wierdness of WSASendTo()??

Corinna Vinschen cygwin@cygwin.com
Fri Apr 12 04:48:00 GMT 2002


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/



More information about the Cygwin mailing list