sockt
isockl
isockt remote_host port_number
disockl
disockt remote_host port_number
The sockt, isockt, and disockt programs talk to the sockl, isockl, and disockl processes, respectively.
sockl and sockt demonstrate AF_UNIX/SOCK_STREAM connections. isockl and isockt demonstrate AF_INET/SOCK_STREAM connections. disockl and disockt demonstrate AF_INET/SOCK_DGRAM unconnected communications.
sockl and isockl accept only the first connection. disockl never closes its socket, since datagrams do not contain reliable, intrinsic, end-of-transmission information. The transmitted data is printed to stdout with a descriptive wrapper.
Upon invocation, isockl and disockl print the port number of the socket they have opened; this is to be used as the port_number argument to the corresponding talker.
The talker may be on a machine separate from the listener, provided the remote_host is listed in the talking machine's hosts database (Yellow Pages or the /etc/hosts file).