Hi,
I'd like a simple
and portable way of obtaining the IP address of my telnet session, so I can set
the DISPLAY environment variable. I know it's possible because the tcsh
shell sets the REMOTEHOST environment variable, but I've had a look at the code,
and there's something I'm missing. I'm pretty sure it's got something to
do with getpeername, but getting the socket handle is where I'm confused.
Can anyone help me out here ?
Thanks,
Steve
