delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/12/03/07:48:47

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Wed, 3 Dec 2008 13:49:01 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Socket programming with Cygwin
Message-ID: <20081203124901.GU12905@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <003201c9552c$a57b1a00$4001a8c0 AT mycomputer> <493665A0 DOT 6F1DE647 AT dessent DOT net> <008701c9553b$c4751a50$4001a8c0 AT mycomputer> <49367BA2 DOT E94E724E AT dessent DOT net>
MIME-Version: 1.0
In-Reply-To: <49367BA2.E94E724E@dessent.net>
User-Agent: Mutt/1.5.16 (2007-06-09)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

On Dec  3 04:29, Brian Dessent wrote:
> John Emmas wrote:
> 
> > Forgive me - but as someone who's very new to socket programming, I'm
> > confused about why the program worked when I built it under Linux.  Is it
> > because something would have converted "localhost" to an IP address (is this
> > the lookup stuff that you referred to?) and where can I find out a bit more
> > about all this?
> 
> Using the older/classic Berkeley API, the socket app calls
> gethostbyname() to convert a hostname to an address.  The newer modern
> API is getaddrinfo() which has a slightly different interface and is
> more friendly for name lookups that could return IPv6 results.

... but is only available starting with Cygwin 1.7.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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