March 2021
Intermediate to advanced
392 pages
9h 46m
English
Now that you know how to properly establish and gracefully terminate TCP connections in Go, it’s time to put that knowledge to use by transmitting data. This chapter covers various techniques for sending and receiving data over a network using TCP.
We’ll talk about the most common methods of reading data from network connections. You’ll create a simple messaging protocol that allows you to transmit dynamically sized payloads between nodes. You’ll then explore the networking possibilities afforded by the net.Conn interface. The chapter concludes with a deeper dive into the TCPConn object and insidious TCP networking ...