User Datagram Protocol (UDP)
For many Internet developers, UDP (User Datagram Protocol) is used much less often than TCP. UDP does not isolate you as neatly from the details of implementing a continuous network communication. For many Java applications, however, choosing UDP as the tool to create a network linkage might be the most prudent option.
Programming with UDP has significant ramifications. Understanding these factors will guide and educate your network programming efforts.
UDP is a good choice for applications in which communications can be separated into discrete messages, where a single query from a client might invoke a single response from a server. Time-dependent data is particularly suited to UDP. UDP requires much less overhead, ...
Get Special Edition Using Java 2 Standard Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.