delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/04/12/07:42:11

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Fri, 12 Apr 2002 13:41:38 +0200
From: Corinna Vinschen <cygwin AT cygwin DOT com>
To: cygwin <cygwin AT cygwin DOT com>
Subject: Re: Wierdness of WSASendTo()??
Message-ID: <20020412134138.Y1127@cygbert.vinschen.de>
Mail-Followup-To: cygwin <cygwin AT cygwin DOT com>
References: <20020411170740 DOT B20801 AT cygbert DOT vinschen DOT de> <200204111630 DOT g3BGUbY24651 AT mx1 DOT redhat DOT com>
Mime-Version: 1.0
In-Reply-To: <200204111630.g3BGUbY24651@mx1.redhat.com>
User-Agent: Mutt/1.3.22.1i

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 AT cygwin DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019