process

package
v0.0.0-...-35843ba Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TCP = "tcp"
	UDP = "udp"
)

Variables

View Source
var (
	ErrInvalidNetwork     = errors.New("invalid network")
	ErrPlatformNotSupport = errors.New("not support on this platform")
	ErrNotFound           = errors.New("process not found")
)
View Source
var (
	DefaultSocketResolver      SocketResolver      = resolveSocketByNetlink
	DefaultProcessNameResolver ProcessNameResolver = resolveProcessNameByProcSearch
)

export for android

Functions

func FindProcessName

func FindProcessName(network string, srcIP net.IP, srcPort int) (string, error)

Types

type ProcessNameResolver

type ProcessNameResolver func(inode, uid int) (name string, err error)

type SocketResolver

type SocketResolver func(network string, ip net.IP, srcPort int) (inode, uid int, err error)

Jump to

Keyboard shortcuts

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