Next: , Previous: , Up: Inetd-Style Components   [Contents][Index]


3.3.9.3 Socket Environment Variables

If the ‘sockenv’ flag is set (see sockenv), the following environment variables are set prior to executing the command:

PROTO

Protocol name.

SOCKTYPE

Socket type. See socket-type, for a list of possible values.

LOCALIP

IP address of the server which is handling the connection.

LOCALPORT

Local port number.

LOCALHOST

Host name of the server. This variable is defined only if the ‘resolve’ flag is set (see resolve).

REMOTEIP

IP address of the remote party (client).

REMOTEPORT

Port number on the remote side.

REMOTEHOST

Host name of the client. This variable is defined only if the ‘resolve’ flag is set (see resolve).

The variables whose names begin with REMOTE are defined only for TCP connections.