Documentation ¶
Index ¶
- func DialTCP(address string) (*net.TCPConn, error)
- func DialTCPContext(ctx context.Context, address string) (*net.TCPConn, error)
- func DialTCPTimeout(address string, timeout time.Duration) (*net.TCPConn, error)
- func DialTCPWithDialer(dialer net.Dialer, address string) (*net.TCPConn, error)
- func JoinHostPort(host string, port uint16) string
- func SplitHostPort(str string) (string, uint16, error)
- type HostType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DialTCPContext ¶ added in v1.8.2
DialTCPContext dial to a address using tcp with a context
func DialTCPTimeout ¶ added in v1.8.2
DialTCPTimeout dial to a address using tcp with a timeout
func DialTCPWithDialer ¶ added in v1.8.2
DialTCPWithDialer dial to a address using tcp
func JoinHostPort ¶
JoinHostPort combines host and port into a network address of the form "host:port". If host contains a colon, as found in literal IPv6 addresses, then JoinHostPort returns "[host]:port".
Types ¶
Click to show internal directories.
Click to hide internal directories.