|
|
To this point we have been concerned mostly with sockets which follow a connection-oriented model. However, there is also support for connectionless interactions typical of the datagram facilities found in contemporary packet-switched networks.
UDP datagram sockets provide only connectionless interactions. When using datagram sockets, the programmer does not have to issue a connect call before sending. A datagram socket provides a symmetric interface to data exchange. Datagram processes are still likely to be client and server, but there is no requirement for connection establishment. Each message includes the destination address.