From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8006 invoked by alias); 26 Feb 2002 19:11:15 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 7911 invoked from network); 26 Feb 2002 19:11:12 -0000 Received: from unknown (HELO gw-us4.philips.com) (63.114.235.90) by sources.redhat.com with SMTP; 26 Feb 2002 19:11:12 -0000 Received: from smtpscan-us2.philips.com (localhost.philips.com [127.0.0.1]) by gw-us4.philips.com with ESMTP id NAA15460; Tue, 26 Feb 2002 13:11:05 -0600 (CST) (envelope-from robert.lopez@abq.sc.philips.com) Received: from smtpscan-us2.philips.com(167.81.233.26) by gw-us4.philips.com via mwrap (4.0a) id xma015456; Tue, 26 Feb 02 13:11:06 -0600 Received: from smtprelay-us1.philips.com (localhost [127.0.0.1]) by smtpscan-us2.philips.com (8.9.3/8.8.5-1.2.2m-19990317) with ESMTP id NAA09273; Tue, 26 Feb 2002 13:11:05 -0600 (CST) Received: from smtphub.abq.sc.philips.com (smtphub.abq.sc.philips.com [130.140.3.9]) by smtprelay-us1.philips.com (8.9.3/8.8.5-1.2.2m-19990317) with ESMTP id NAA29632; Tue, 26 Feb 2002 13:11:04 -0600 (CST) Received: from abqb1k.abq.sc.philips.com (abqb1k.abq.sc.philips.com [130.140.5.2]) by smtphub.abq.sc.philips.com (8.8.5/8.8.5) with ESMTP id MAA02723; Tue, 26 Feb 2002 12:14:04 -0700 (MST) Received: from abqb1k (abqb1k [130.140.5.2]) by abqb1k.abq.sc.philips.com (8.9.3+Sun/8.9.3) with SMTP id MAA15531; Tue, 26 Feb 2002 12:08:28 -0700 (MST) Message-Id: <200202261908.MAA15531@abqb1k.abq.sc.philips.com> Date: Tue, 26 Feb 2002 18:29:00 -0000 From: Robert Lopez Reply-To: Robert Lopez Subject: Re: IP ADDRESS OF MACHINE To: snodx@hotmail.com, gcc-help@gcc.gnu.org MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Content-MD5: AaJILbGoi0kBnoM+tO5BjA== X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.4.2 SunOS 5.8 sun4u sparc X-SW-Source: 2002-02/txt/msg00277.txt.bz2 > So I wish to obtain my standalone computer's IP Address through a > C/C++ program. What function should I use for this? The GNU C Library Reference Manual might be useful to you. See the sections on Host Addresses and Host Names in the Sockets section. Robert.Lopez@Philips.com