-
-
Notifications
You must be signed in to change notification settings - Fork 3
tcp environ.5
tcp-environ - TCP-related environment variables
The following environment variables describe a TCP connection. They are set up by tcp-env, tcpclient, and tcpserver. Note that TCPLOCALHOST, TCPREMOTEHOST, and TCPREMOTEINFO can contain arbitrary characters.
PROTO
The string TCP.
TCPLOCALHOST
The domain name of the local host, with uppercase letters converted to
lowercase for ipv4 and ipv4-mapped ipv6 connection. If there is no
currently available domain name for the local IP address,
TCPLOCALHOST is not set. For ipv6 connection, TCP6LOCALHOST will be
set.
TCPLOCALIP
The IP address of the local host, in dotted-decimal form for ipv4 and
ipv4-mapped ipv6 connections. For ipv6 connections TCP6LOCALIP will be
set.
TCPLOCALPORT
The local TCP port number, in decimal. For ipv6 connections,
TCP6LOCALPORT will be set.
TCPREMOTEHOST
The domain name of the remote host, with uppercase letters converted to
lowercase. For ipv6 connections, TCP6REMOTEHOST will be set. If there is
no currently available domain name for the remote IP address,
TCPREMOTEHOST is not set.
TCPREMOTEINFO
A connection-specific string, perhaps a username, supplied by the remote
host via 931/1413/IDENT/TAP. For ipv6 connections, TCP6REMOTEINFO will
be set. If the remote host did not supply connection information,
TCPREMOTEINFO is not set.
TCPREMOTEIP
The IP address of the remote host for ipv4 and ipv4-mapped ipv6
connections. For ipv6 connections, TCP6REMOTEIP will be set.
TCPREMOTEPORT
The remote TCP port number. For ipv6 connections, TCP6REMOTEPORT will be
set.
tcpclient(1), tcpserver(1), tcp-env(1), tcp(4)