Go Time: Golang, Software Engineering cover image

TCP & UDP

Go Time: Golang, Software Engineering

00:00

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.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app