Documentation
¶
Index ¶
Constants ¶
View Source
const (
LISTEN = 1024
SOCK_DIAG_BY_FAMILY = 20
)
Variables ¶
This section is empty.
Functions ¶
func GetListeningPortsFor ¶
func GetListeningPortsFor(pid int) ([]int, error)
func GetSocketInodesFor ¶
func GetSocketInodesFor(pid int) ([]uint64, error)
Types ¶
type Socket ¶
type Socket struct {
Family uint8
State uint8
Timer uint8
Retrans uint8
ID SocketID
Expires uint32
RQueue uint32
WQueue uint32
UID uint32
INode uint32
}
Socket represents a netlink socket.
func SocketListen ¶
func SocketListen() ([]*Socket, error)
SocketGet returns the Socket identified by its local and remote addresses.
Click to show internal directories.
Click to hide internal directories.