Documentation
¶
Index ¶
- Variables
- func IsAcceptTimeoutError(err error) bool
- func IsClosedConnError(err error) bool
- func Listen(ctx context.Context, network, address string) (net.Listener, error)
- func ListenPacket(ctx context.Context, network, address string) (net.PacketConn, error)
- func NewSingleConnListener(conn net.Conn) net.Listener
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAcceptTimeout = errors.New("i/o timeout")
View Source
var ErrNetClosing = errors.New("use of closed network connection")
Functions ¶
func IsAcceptTimeoutError ¶
IsAcceptTimeoutError reports whether err is an error from use of a accept timeout.
func IsClosedConnError ¶
IsClosedConnError reports whether err is an error from use of a closed network connection.
func ListenPacket ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.