Documentation
¶
Index ¶
Constants ¶
View Source
const (
LISTEN = 1024
)
Variables ¶
This section is empty.
Functions ¶
func GetListeningPorts ¶
func GetListeningPorts(ctx context.Context) (map[int]ProcessSockets, error)
func GetProcessSockets ¶
func GetProcessSockets() (map[int][]uint64, error)
func GetSocketInodesFor ¶
func GetSocketInodesFor(pid int) ([]uint64, error)
Types ¶
type ProcessSockets ¶
type ProcessSockets struct {
Pid int
Sockets []*Socket
}
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)
Click to show internal directories.
Click to hide internal directories.