Next: Error Messages, Previous: TCPMUX, Up: inetd invocation [Contents][Index]
If a connection is made with a streaming protocol (‘stream’) and
if --environment option has been given, inetd will
set the following environment variables before starting the program:
PROTOAlways ‘TCP’.
TCPLOCALIPLocal IP address of the interface which accepted the connection.
TCPLOCALPORTPort number on which the TCP connection was established.
TCPREMOTEIPIP address of the remote client.
TCPREMOTEPORTPort number on the client side of the TCP connection.
Additionally, if given the --remote option, inetd
sets the following environment variables:
TCPLOCALHOSTDNS name of TCPLOCALIP.
TCPREMOTEHOSTDNS name of TCPREMOTEIP.