Home
Knowledge Base
Credits
Site Map
 


Socket Programming with UDP


UDP also allows two or more processes running on different hosts to communicate

Four major differences

  1. There is no initial handshaking between the two processes and therefore no need for a welcoming socket
  2. No streams are attached to the socket
  3. The sending hosts create packets by attaching the IP destination address and port number to each batch of bytes it sends
  4. The receiving process must unravel each received packet to obtain the packet's information bytes

 



 

UDP provides an unreliable transport service to its communication processes - it makes no guarantees that a datagram will reach ita ultimate destination