delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/11/27/05:56:00

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <3A223D8E.63E39501@redhat.com>
Date: Mon, 27 Nov 2000 11:55:10 +0100
From: Corinna Vinschen <vinschen AT redhat DOT com>
Reply-To: cygwin <cygwin AT cygwin DOT com>
X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.16 i686)
X-Accept-Language: de, en
MIME-Version: 1.0
To: cygwin <cygwin AT cygwin DOT com>
Subject: Re: Missing inet_aton - Unsupported IP_HDRINCL
References: <008201c055b9$c8db4d60$04e2f4d8 AT yeeha>

Hugh wrote:
> The problem is: I decided to port some short program that calls inet_aton.
> The function proto is in the header included in cygwin package
> 
> cygwin\usr\include\arpa\inet.h
> #ifndef __INSIDE_CYGWIN_NET__
> unsigned long  inet_addr (const char *);
> int   inet_aton (const char *, struct in_addr *);   <<<======== HERE

I have implemented this now. It appears in the 20001125 developer
snapshot.

> Now lets go to the IP_HDRINCL (this has to do with cygwin (blame on
> Miscros**t) ). IP_HDRINCL is undeclared so i decided to declare it but
> cygwins dll complaints about this being an invalid argument for setsockopt,
> which is reasonable. 1)does it have something to do with most of the windows
> platforms (lets say winsocks) not supporting this option? 

Yes.

> 2)Ive read only
> Windows 2000 (not even NT) supports IP_HDRINCL. Has anyone tried it on W2K?

It's not documented in MSDN.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.
mailto:vinschen AT redhat DOT com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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