TCP and UDP are transport protocols used for communication between computers. UDP(User Datagram Protocol) is a very simple connectionless protocol. UDP can be used to send datagrams, using Datagram Sockets, to one another i.e. from client to server and server to client. A datagram is an independent, self-contained message that can be sent over the network but there is no guarantee for the arrival of the content, arrival time of the content, ordering of the content and content itself. So UDP is good to use when a short message is coming to the server with a short response.
Read more at:
If you enjoyed this post then why not add us on Google+? Add us to your Circles
Liked it! Share this Tutorial
Discuss: Java UDP
Post your Comment