sockl

Section: User Commands (1)
Index Return to Main Contents
 

Name

sockl, sockt, isockl, isockt, disockl, disockt - socket demonstration programs  

Syntax

sockl

sockt

isockl

isockt remote_host port_number

disockl

disockt remote_host port_number  

Description

The sockl, isockl, and disockl programs open sockets and listen for transmission requests.

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).  

Files

/etc/hosts  

See Also

socket(2), gethostbyname(3n)  

Author

Blair P. Houghton, Intel Corp., Arizona
(bhoughto@pima.intel.com, uunet!intelhf!pima!bhoughto)


 

Index

Name
Syntax
Description
Files
See Also
Author

This document was created by man2html, using the manual pages.
Time: 06:19:08 GMT, December 12, 2024