watchnet

package
v0.0.0-...-5054cf0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NEWLINE = "\n"
)

Variables

This section is empty.

Functions

func Watch

func Watch(ctx context.Context) (alive chan NetProcess, dead chan NetProcess)

Types

type NetProcess

type NetProcess struct {
	Pid         uint
	Ports       []uint
	DisplayName string
}

TODO run in proc sudo lsof -i -P -n NetProcess simple process that opened/closed a port

Jump to

Keyboard shortcuts

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