5 Unreliable UDP Communication
Although most networking applications take advantage of TCP’s reliability and flow control, the less popular User Datagram Protocol (UDP) is nonetheless an important part of the TCP/IP stack. UDP is a simple protocol with minimal features. Some applications do not require TCP’s feature set and session overhead. Those applications, like domain name resolution services, opt to use UDP instead.
This chapter starts by comparing UDP to TCP, focusing on scenarios where UDP may be a better choice over TCP. Then, you’ll learn how to send and receive UDP packets in Go. Finally, you’ll learn why it’s best to limit the ...
Get Network Programming with Go 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.