4min chapter

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

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode