Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Addr ¶
type Addr struct {
// contains filtered or unexported fields
}
Addr represents a hostname and an optional port. The port == 0 means no port. For TCP, port number 0 is reserved and cannot be used. For UDP, the source port is optional and 0 means no port.
func MakeHostname ¶
MakeHostname set the hostname and no port.
func ParseString ¶
ParseString parses the hostname and port number.
Click to show internal directories.
Click to hide internal directories.