Go Time: Golang, Software Engineering cover image

TCP & UDP

Go Time: Golang, Software Engineering

CHAPTER

Using TCP and UDP in Go Code?

The con interface is suitable for most people using TCP. There's a packet con as well that's probably better suited for UDP, at least the way most people will use it. When you create this connection object, even though it's UDP, you give go an address that you want to communicate with. So when you write to thisobject, it will only write to that your destination. And when you read from this object, it'll only pay attention to UDP packets coming from that destination.

00:00
Transcript
Play full episode

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner