Table of Contents
is
a simple, unreliable datagram protocol which is used to support the abstraction
for the Internet protocol family. sockets are connectionless, and are normally
used with the and calls, though the call may also be used to fix the
destination for future packets (in which case the or and or system
calls may be used). address formats are identical to those used by In
particular provides a port identifier in addition to the normal Internet
address format. Note that the port space is separate from the port space
(i.e. a port may not be to a port). In addition broadcast packets may
be sent (assuming the underlying network supports this) by using a reserved
this address is network interface dependent. Options at the transport
level may be used with see
A socket operation may fail with
one of the following errors returned: when trying to establish a connection
on a socket which already has one, or when trying to send a datagram with
the destination address specified and the socket is already connected;
when trying to send a datagram, but no destination address is specified,
and the socket hasn’t been connected; when the system runs out of memory
for an internal data structure; when an attempt is made to create a socket
with a port which has already been allocated; when an attempt is made
to create a socket with a network address for which no network interface
exists.
The protocol appeared in
Table of Contents