Xref: utzoo comp.unix.wizards:20910 comp.unix.questions:20431 Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!snorkelwacker!apple!bionet!ames!elroy.jpl.nasa.gov!zardoz.cpd.com!durin!frankh From: frankh@durin.sparta.COM (Frank Halsema) Newsgroups: comp.unix.wizards,comp.unix.questions Subject: Getting the peers name Message-ID: <1587@durin.sparta.COM> Date: 7 Mar 90 05:34:16 GMT Organization: SPARTA Inc. Laguna Hills Operations. CA Lines: 14 I have a system to which all users access via telnet. I would like to write a routine that will return the internet address of the machine that the users is telneting from. I can call getpeername but it requires the socket id as input. Is the id just the stdin file descriptor ? Is there a call that will return it ? Thanks for Any and all help!! -- Frank Halsema UUCP: durin!frankh SPARTA, Inc. ARPA: frankh@durin.sparta.com 23041 de la Carlota, Suite 400 Laguna Hills Ca, 92653 (714) 768-8161 EXT 339 (714)583-9114 FAX