🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Servidor con sockets

#9639
From: Guzz
Date: Sat, 01 Jun 2002 19:31
8 lines
1276 bytes
Hola de nuevo a todos.
Tengo creado un servidor web programado con sockets. Para probarlo suelo
usar un cliente telnet.
Pues bien, estoy intentando conseguir la direccion IP del cliente q se me
conecta al servidor. He probado mediante accept(...) y mediante
getpeername(...), pero no veo la forma de sacarle la IP al cliente. Haber si
me podeis echar una manilla.
Gracias de antemano. Guzz.
Technical Details
Message-ID: <adb7gn$100uhv$1@ID-126751.news.dfncis.de>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!uni-berlin.de!217-127-24-62.uc.nombres.ttd.ES!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII-7-bit
X-Google-Thread: f86c8,d7c1322f22433df4,start
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2002-06-01 12:32:40 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!uni-berlin.de!217-127-24-62.uc.nombres.ttd.ES!not-for-mail
From: "Guzz" <keirolSINESTO@eresmas.com>
Newsgroups: es.comp.os.linux.programacion
Subject: Servidor con sockets
Date: Sat, 1 Jun 2002 21:31:46 +0200
Lines: 10
Message-ID: <adb7gn$100uhv$1@ID-126751.news.dfncis.de>
NNTP-Posting-Host: 217-127-24-62.uc.nombres.ttd.es (217.127.24.62)
X-Trace: fu-berlin.de 1022959959 33585727 217.127.24.62 (16 [126751])
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700