Networking
In this chapter, we embark on a practical journey through the intricacies of network programming in Go. It’s a realm where the simplicity of syntax meets the complexity of network communications.
As we progress, you’ll gain a comprehensive understanding of how to leverage Go’s powerful standard library, specifically the net
package, to build robust network-driven applications. From establishing Transmission Control Protocol (TCP) and User Datagram Protocol (UDP) connections to crafting nimble web servers and constructing chatty clients, this chapter serves as your guide to mastering network interactions in Go, empowering you with practical skills.
The chapter will cover the following key topics:
- The
net
package - TCP sockets
- HTTP servers and clients
- Securing the connection
- Advanced networking
By the end of this chapter, you will have learned about network programming. The topics covered include TCP sockets, TCP communication...