iphelper

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

View Source
const (
	IPv4 uint8 = 4
	IPv6 uint8 = 6

	TCP uint8 = 6
	UDP uint8 = 17
)

IP and Protocol constants

Variables

This section is empty.

Functions

func GetTCP4Table

func GetTCP4Table() (connections []*socket.ConnectionInfo, listeners []*socket.BindInfo, err error)

GetTCP4Table returns the system table for IPv4 TCP activity.

func GetTCP6Table

func GetTCP6Table() (connections []*socket.ConnectionInfo, listeners []*socket.BindInfo, err error)

GetTCP6Table returns the system table for IPv6 TCP activity.

func GetUDP4Table

func GetUDP4Table() (binds []*socket.BindInfo, err error)

GetUDP4Table returns the system table for IPv4 UDP activity.

func GetUDP6Table

func GetUDP6Table() (binds []*socket.BindInfo, err error)

GetUDP6Table returns the system table for IPv6 UDP activity.

Types

type IPHelper

type IPHelper struct {
	// contains filtered or unexported fields
}

IPHelper represents a subset of the Windows iphlpapi.dll.

func New

func New() (*IPHelper, error)

New returns a new IPHelper API (with an instance of iphlpapi.dll loaded).

Jump to

Keyboard shortcuts

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