🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #11167

Re: Dirección IP.

#11167
From: Ángel Suárez Rivero
Date: Tue, 18 Dec 2001 19:22
29 lines
1529 bytes
jmp wrote:

> 
> Hola,
> 
> Existe alguna funci�n el lenguaje C que dandole el login nos devuelva la
> direcci�n IP.
> 
> �c�mo puedo hacerlo ?
> 
> Gracias.
> jmp

Depende de la plataforma para la que se programe. Busca por: "gethostbyname"
#include <netdb.h>

Sds

-- 
-----BEGIN PGP MESSAGE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

owGbwMvMwCR4mlF2Vp79x72Ma04kcekVZ6bnJZaUFqXasFbeDUgsSsnPU0jLL1LI
rVRwzUvPySzO4LLVJRNy1XA6+Lm7+nAWFyXmpafmOJSk5qTmZOal6qUWcxbklySW
5CsY6VUqFGQm53PWUGBPhz0zKwPIAzC/CTIV9zPMU7ypfjl0seSXuFSvXROCH7F5
fem2ZJifuOGfelOH1nE32yfv2hR5Mi6lHTEGAA==
=tKD8
-----END PGP MESSAGE-----
Technical Details
Message-ID: <i15ov9.ab.ln@127.0.0.1>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.cwix.com!newsfeed.bcn.ttd.net!news.mad.ttd.net!127.0.0.1!nobody
References: <9vnsdl$s58$1@talia.mad.ttd.net>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,64247f35a01b47cb
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2001-12-18 12:57:23 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.cwix.com!newsfeed.bcn.ttd.net!news.mad.ttd.net!127.0.0.1!nobody
From: Ángel Suárez Rivero <srangel@teleline.es>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Dirección IP.
Date: Tue, 18 Dec 2001 19:22:24 +0000
Organization: Telefonica Transmision de Datos
Lines: 29
Message-ID: <i15ov9.ab.ln@127.0.0.1>
References: <9vnsdl$s58$1@talia.mad.ttd.net>
NNTP-Posting-Host: 213-99-69-251.uc.nombres.ttd.es
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8Bit
User-Agent: KNode/0.6.1