3 Reliable TCP Data Streams
TCP allows you to reliably stream data between nodes on a network. This chapter takes a deeper dive into the protocol, focusing on the aspects directly influenced by the code we’ll write to establish TCP connections and transmit data over those connections. This knowledge should help you debug network-related issues in your programs.
We’ll start by covering the TCP handshake process, its sequence numbers, acknowledgments, retransmissions, and other features. Next, we’ll implement the steps of a TCP session in Go, from dialing, listening, and accepting to the session termination. Then, we’ll discuss time-outs ...
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.