March 2021
Intermediate to advanced
392 pages
9h 46m
English
Chapter 5 introduced basic network applications using UDP and demonstrated the flexibility of Go’s net package and interfaces for writing portable code. This chapter picks up where the last one left off to introduce one method of ensuring reliability when communicating over UDP.
This chapter starts by introducing an application protocol built on top of UDP. We’ll cover a subset of types used by this protocol and demonstrate how they are used to reliably transfer data. We’ll then implement a server that allows clients to download files using the application protocol. Finally, we’ll download a file from our server ...