Socket programming with Cygwin
Wed Dec 3 12:48:00 GMT 2008
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 Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
More information about the Cygwin