Skip to Content
Network Programming with Go
book

Network Programming with Go

by Adam Woodbeck
March 2021
Intermediate to advanced
392 pages
9h 46m
English
No Starch Press
Content preview from Network Programming with Go

4 Sending TCP Data

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Network Programming with Go Language: Essential Skills for Programming, Using and Securing Networks with Open Source Google Golang

Network Programming with Go Language: Essential Skills for Programming, Using and Securing Networks with Open Source Google Golang

Jan Newmarch, Ronald Petty
Programming Kubernetes

Programming Kubernetes

Michael Hausenblas, Stefan Schimanski

Publisher Resources

ISBN: 9781098128890Errata Page