Lines Matching full:socket
37 file \fI<sys/socket.h>\fP.
45 Socket types and protocols
48 known as \fIsockets\fP. Each socket has the potential to exchange
51 Each socket has an associated
53 socket. Properties such as reliability, ordering, and prevention
55 The basic set of socket types is defined in \fI<sys/socket.h>\fP:
57 /* Standard socket types */
61 #define SOCK_RAW 3 /* raw socket */
67 A datagram socket may send messages to and receive messages from multiple
87 Other socket types can be defined.
89 Each socket may have a specific \fIprotocol\fP associated with it.
91 required by the socket type.
92 Not all socket types are supported by each domain;
100 Socket creation, naming and service establishment
103 socket descriptor is obtained by the \fIsocket\fP call:
105 s = socket(domain, type, protocol);
108 The socket domain and type are as described above,
109 and are specified using the definitions from \fI<sys/socket.h>\fP.
114 An unconnected socket descriptor of a connection-oriented type
115 may yield a connected socket descriptor
116 in one of two ways: either by actively connecting to another socket,
118 \fIaccepting\fP a connection from another socket.
122 a socket must first have a binding
132 a socket's bound name may be retrieved with a \fIgetsockname\fP call:
146 Once a binding is made to a connection-oriented socket,
160 returns a descriptor for a new, connected, socket
167 An active connection to a named socket is made by the \fIconnect\fP call:
204 Messages may be sent from a socket by:
209 if the socket is not connected or:
214 if the socket is connected.
251 Thus the system defines a message header structure, in \fI<sys/socket.h>\fP,
267 address if the socket is unconnected; \fImsg_name\fP may be given as
290 received. A process may operate on a virtual circuit socket, a terminal
296 A process that has a full-duplex socket such as a virtual circuit
297 and no longer wishes to read from or write to this socket can
310 Socket and protocol options
325 protocol \fIlevel\fP for socket \fIs\fP. If a value is specified
329 by the socket facilities. Other \fIlevel\fP values indicate
347 Socket names are strings and may appear in the UNIX file
368 Socket types and protocols
374 and is accessible via a raw socket.
380 Socket naming
401 Each raw socket is associated with one IP protocol number,