If the ‘sockenv’ flag is set (see sockenv), the following environment variables are set prior to executing the command:
Socket type. See socket-type, for a list of possible values.
IP address of the server which is handling the connection.
Local port number.
Host name of the server. This variable is defined only if the ‘resolve’ flag is set (see resolve).
IP address of the remote party (client).
Port number on the remote side.
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.