listener

package
v0.4.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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

func IsAcceptTimeoutError(err error) bool

IsAcceptTimeoutError reports whether err is an error from use of a accept timeout.

func IsClosedConnError

func IsClosedConnError(err error) bool

IsClosedConnError reports whether err is an error from use of a closed network connection.

func Listen

func Listen(ctx context.Context, network, address string) (net.Listener, error)

func ListenPacket

func ListenPacket(ctx context.Context, network, address string) (net.PacketConn, error)

func NewSingleConnListener

func NewSingleConnListener(conn net.Conn) net.Listener

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL