Datagram socket

From Wikipedia, the free encyclopedia

Datagram socket is a type of Internet socket, which is the sending or receiving point for packet delivery services. 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.