Sending UDP Data
The UDP protocol is a simple byte stream service. It does not know anything about the format of the data being sent. It simply takes the data, encapsulates it into the UDP packet, and sends it to a remote peer.
The UDP protocol does not wait for any acknowledgement and is unable to detect any lost packets. When acknowledgement or detection is required, it must be done by the application layer. However, it is better to use a TCP socket for communication when acknowledgement is necessary.