Documentation ¶
Index ¶
- Constants
- func GetPID(socketInfo socket.Info) (pid int)
- func GetTCP4Table() (connections []*socket.ConnectionInfo, listeners []*socket.BindInfo, err error)
- func GetTCP6Table() (connections []*socket.ConnectionInfo, listeners []*socket.BindInfo, err error)
- func GetUDP4Table() (binds []*socket.BindInfo, err error)
- func GetUDP6Table() (binds []*socket.BindInfo, err error)
Constants ¶
View Source
const ( TCP4 uint8 = iota UDP4 TCP6 UDP6 ICMP4 ICMP6 )
Network Related Constants.
Variables ¶
This section is empty.
Functions ¶
func GetPID ¶ added in v0.4.12
GetPID returns the already existing pid of the given socket info or searches for it. This also acts as a getter for socket.*Info.PID, as locking for that occurs here.
func GetTCP4Table ¶
func GetTCP4Table() (connections []*socket.ConnectionInfo, listeners []*socket.BindInfo, err error)
GetTCP4Table returns the system table for IPv4 TCP activity.
func GetTCP6Table ¶
func GetTCP6Table() (connections []*socket.ConnectionInfo, listeners []*socket.BindInfo, err error)
GetTCP6Table returns the system table for IPv6 TCP activity.
func GetUDP4Table ¶
GetUDP4Table returns the system table for IPv4 UDP activity.
func GetUDP6Table ¶
GetUDP6Table returns the system table for IPv6 UDP activity.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.