Documentation ¶
Index ¶
Constants ¶
View Source
const ( // NetworkTCP tcp network NetworkTCP = "tcp" NetworkTCP4 = "tcp4" NetworkTCP6 = "tcp6" NetworkUDP = "udp" NetworkUDP4 = "udp4" NetworkUDP6 = "udp6" NetworkIP = "ip" NetworkIP4 = "ip4" NetworkIP6 = "ip6" NetworkUnix = "unix" NetworkUnixGram = "unixgram" NetworkUnixPacket = "unixpacket" )
所有的 Network 定义
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interfaces ¶
type Interfaces struct { }
Interfaces system's network interface helper
func (*Interfaces) Addrs ¶
func (itf *Interfaces) Addrs() ([]net.Addr, error)
Addrs a list of the system's all network interface's addrs
func (*Interfaces) IPs ¶
func (itf *Interfaces) IPs() ([]net.IP, error)
IPs a list of system's all network ips
Click to show internal directories.
Click to hide internal directories.