Re: IP Address of an interface
From: Barry Margolin (barmar_at_alum.mit.edu)
Date: 04/29/04
- Next message: Daniel Stenberg: "Re: Query a DNS in C"
- Previous message: Chris Markle: "Can TCP_NODELAY be turned on and off in a single session?"
- In reply to: Pedro Roure: "IP Address of an interface"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 29 Apr 2004 02:18:47 -0400
In article <62166923.0404281907.2e0cd317@posting.google.com>,
pedro_roure@terra.com.br (Pedro Roure) wrote:
> How can I get an IP address of an interface, like "eth0" ?
The SIOCGIFADDR ioctl. See chapter 16 of Unix Network Programming,
Vol.1.
-- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me ***
- Next message: Daniel Stenberg: "Re: Query a DNS in C"
- Previous message: Chris Markle: "Can TCP_NODELAY be turned on and off in a single session?"
- In reply to: Pedro Roure: "IP Address of an interface"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]