Socket Types and Protocols

Socket subroutines take socket types and socket protocols as parameters. An application program specifying a socket type indicates the desired communication style for that socket or socket pair.

An application program specifying a socket protocol indicates the desired type of service. This service must be within the allowable services of the protocol family.