Registry / networking / pion-udp

pion-udp

JSON →
library0.1.4gogounverified

Package udp provides a connection-oriented listener over a UDP PacketConn.

go get github.com/pion/udp
INSTALL
IMPORT
SIG · PION-UDP
P
pion-udp
networkinggov0.1.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

udp
github.com/pion/udp

Create a connection-oriented UDP listener and accept a connection.

package main import ( "fmt" "github.com/pion/udp" ) func main() { listener, err := udp.Listen("udp", ":0") if err != nil { panic(err) } defer listener.Close() fmt.Println("Listening on", listener.Addr()) conn, err := listener.Accept() if err != nil { panic(err) } buf := make([]byte, 1024) n, _ := conn.Read(buf) fmt.Println("Received:", string(buf[:n])) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.4latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
pion-udp — go get pion-udp · libregistry