boundport

package
v0.56.0-rc.5 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package boundport provides utilies for getting bound port information

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoundPort

type BoundPort interface {
	LocalAddress() string
	LocalPort() int
	Process() string
	PID() int
}

BoundPort represents a port that is bound to a process

func BoundPorts

func BoundPorts(host *components.RemoteHost) ([]BoundPort, error)

BoundPorts returns a list of ports that are bound on the host

func FromNetstat

func FromNetstat(output string) ([]BoundPort, error)

FromNetstat parses the output of the netstat command

func FromSs

func FromSs(output string) ([]BoundPort, error)

FromSs parses the output of the ss command

Jump to

Keyboard shortcuts

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