iphelper

package
v0.8.12 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: AGPL-3.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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