Versions in this module Expand all Collapse all v1 v1.0.1 May 25, 2024 Changes in this version + var ErrClosedListener = errors.New("udp: Listener closed") + var ErrListenQueueExceeded = errors.New("udp: listen queue exceeded") + func Listen(network string, laddr *net.UDPAddr) (net.Listener, error) + type Conn struct + func (c *Conn) Close() error + func (c *Conn) LocalAddr() net.Addr + func (c *Conn) Read(p []byte) (int, error) + func (c *Conn) RemoteAddr() net.Addr + func (c *Conn) SetDeadline(t time.Time) error + func (c *Conn) SetReadDeadline(t time.Time) error + func (c *Conn) SetWriteDeadline(t time.Time) error + func (c *Conn) Write(p []byte) (n int, err error) + type ListenConfig struct + AcceptFilter func([]byte) bool + Backlog int + func (lc *ListenConfig) Listen(network string, laddr *net.UDPAddr) (net.Listener, error) + type Listener struct + func (l *Listener) Accept() (net.Conn, error) + func (l *Listener) Addr() net.Addr + func (l *Listener) Close() error