[comp.unix.questions] Getting the peers name

frankh@durin.sparta.COM (Frank Halsema) (03/07/90)

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