Datagram socket

Datagram socket

A datagram socket is a type of connectionless Internet socket, which is the sending or receiving point for packet delivery services.[1] Each packet sent or received on a datagram socket is individually addressed and routed. Multiple packets sent from one machine to another may arrive in any order and might not arrive at the receiving computer.

UDP broadcasts sends are always enabled on a datagram socket. In order to receive broadcast packets, a datagram socket should be bound to the wildcard address. Broadcasted packets may also be received when a datagram socket is bound to a more specific address.

References

  1. ^ V. S. Bagad, I. A. Dhotre (2008), Computer Networks (5th revised edition, 2010 ed.), Technical Publications Pune, p. 52 

See also