proc

package
v0.4.9-0.3.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 20, 2020 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TCP4 uint8 = iota
	UDP4
	TCP6
	UDP6
	ICMP4
	ICMP6
)

Network Related Constants

Variables

This section is empty.

Functions

func FindBindPID added in v0.4.8

func FindBindPID(socketInfo *socket.BindInfo) (pid int)

FindBindPID returns the pid of the given socket info.

func FindConnectionPID added in v0.4.8

func FindConnectionPID(socketInfo *socket.ConnectionInfo) (pid int)

FindConnectionPID returns the pid of the given socket info.

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

func GetUDP4Table() (binds []*socket.BindInfo, err error)

GetUDP4Table returns the system table for IPv4 UDP activity.

func GetUDP6Table

func GetUDP6Table() (binds []*socket.BindInfo, err error)

GetUDP6Table returns the system table for IPv6 UDP activity.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL