package net
Import Path
github.com/pion/dtls/v3/pkg/net (on go.dev)
Dependency Relation
imports 2 packages, and imported by 2 packages
Involved Source Files
Package net defines packet-oriented primitives that are compatible with net
in the standard library.
Package-Level Type Names (only one)
A PacketListener is the same as net.Listener but returns a net.PacketConn on
Accept() rather than a net.Conn.
Multiple goroutines may invoke methods on a PacketListener simultaneously.
Accept waits for and returns the next connection to the listener.
Addr returns the listener's network address.
Close closes the listener.
Any blocked Accept operations will be unblocked and return errors.
PacketListener : github.com/prometheus/common/expfmt.Closer
PacketListener : io.Closer
func PacketListenerFromListener(l net.Listener) PacketListener
func github.com/pion/dtls/v3/internal/net/udp.Listen(network string, laddr *net.UDPAddr) (PacketListener, error)
func github.com/pion/dtls/v3/internal/net/udp.(*ListenConfig).Listen(network string, laddr *net.UDPAddr) (PacketListener, error)
func github.com/pion/dtls/v3.NewListener(inner PacketListener, config *dtls.Config) (net.Listener, error)
Package-Level Functions (total 2)
PacketConnFromConn converts a net.Conn into a net.PacketConn.
PacketListenerFromListener converts a net.Listener into a
dtlsnet.PacketListener.
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |