Documentation ¶
Overview ¶
Package net provides generic network helpers and proxies to some useful standard types and functions
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JoinAllHostPorts ¶
JoinAllHostPorts combines a list of addresses and a list of ports, validating the provided IP addresses or name in the process
func JoinHostPort ¶
JoinHostPort combines a given host address and a port, validating the provided IP address or name in the process
Types ¶
type Dialer ¶ added in v0.2.0
type Dialer interface {
DialContext(ctx context.Context, network string, address string) (net.Conn, error)
}
Dialer establishes a TCP connection to a remote.
type TCPListener ¶ added in v0.2.4
type TCPListener = net.TCPListener
TCPListener is an alias of the standard net.TCPListener type
Directories ¶
Path | Synopsis |
---|---|
Package bind provides mechanisms to facilitate listening TCP and UDP ports
|
Package bind provides mechanisms to facilitate listening TCP and UDP ports |
Package reconnect implement a generic retrying TCP client
|
Package reconnect implement a generic retrying TCP client |
Click to show internal directories.
Click to hide internal directories.