Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ socket(5) — Interactive 3.2r4.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

socket(3I)

socket(7)

streamio(7)

socket(5)  —  

NAME

socket − socket configuration file

SYNOPSIS

/etc/socket.conf

DESCRIPTION

The socket configuration file contains information that is read by the socket library routine each time it is invoked by a process.  The file is designed to be human readable and contains a list of streams devices that are to be opened and streams modules that are to be pushed on top of the opened devices for different socket domains, types, and ­protocols. 

On a normally configured system this file should not need to be changed.  It is installed with the information required for the particular network configuration that has been installed with it. 

The file consists of lines with fields separated by white space (space or tab characters).  Each line constitutes one entry.  The first three fields on each line are numerical and contain the socket domain, socket type, and protocol corresponding to the respective parameters to the socket(3I) call. The fourth field is the complete name of the device to open for that particular combination of domain, type, and protocol.  Any additional fields are names of streams modules that should be pushed on the stream above the opened driver (see streamio(7)).

Here is the entry for TCP:

#domaintypeprotocoldevicemodules
#       AF_INET     SOCK_STREAM
210/dev/tcpsocket

If a line begins with a number sign (#), that line is treated as a comment and is skipped.  A zero in any of the first three fields will match any value of that parameter.  The first line that matches the calling parameters is used.  A list of the possible values for the first two fields are contained in the include file /usr/include/sys/socket.h.  The domain field is called the address family in that file.  The protocol field is interpreted according to the value of the domain and type fields.  It can usually be left zero.  If no module names are listed, the socket(7) module is pushed.

FILES

/etc/socket.conf
/usr/include/sys/socket.h

SEE ALSO

socket(3I), socket(7). 
streamio(7) in the INTERACTIVE UNIX System User’s/System Administrator’s Reference Manual.

\*U  —  Version 1.0

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026