Documentation
¶
Index ¶
- Variables
- func ConnWithAddr(conn net.Conn, localAddr, remoteAddr net.Addr) net.Conn
- func ConnWithCloser(conn net.Conn, closer func() error) net.Conn
- func IsAcceptTimeoutError(err error) bool
- func IsClosedConnError(err error) bool
- func IsServerClosedError(err error) bool
- func NewNetAddr(network, address string) net.Addr
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAcceptTimeout = errors.New("i/o timeout")
View Source
var ErrClosedConn = errors.New("use of closed network connection")
View Source
var ErrServerClosed = fmt.Errorf("server closed")
Functions ¶
func ConnWithAddr ¶ added in v0.0.2
func ConnWithCloser ¶ added in v0.0.2
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 IsServerClosedError ¶
IsServerClosedError reports whether err is an error from server closed.
func NewNetAddr ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.