Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.
/ udpchan Public archive
forked from Cistern/udpchan

A tiny channel wrapper around UDP connections

License

Notifications You must be signed in to change notification settings

VividCortex/udpchan

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

udpchan Build Status GoDoc

A tiny channel wrapper around UDP connections

Usage

It's pretty simple: call Connect or Listen and get a []byte channel back!

inbound, err := Listen(":9999", nil)
if err != nil {
	// handle err
}

outbound, err := Connect(":9999")
if err != nil {
	// handle err
}

message := []byte("foo")

// Send a message over UDP
outbound <- message

// Receive a message over UDP
read := <-inbound // = []byte("foo")

License

MIT

About

A tiny channel wrapper around UDP connections

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%