winiphlpapi

package
v0.7.14 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2025 License: GPL-2.0 Imports: 14 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

View Source
const (
	TcpTableBasicListener uint32 = iota
	TcpTableBasicConnections
	TcpTableBasicAll
	TcpTableOwnerPidListener
	TcpTableOwnerPidConnections
	TcpTableOwnerPidAll
	TcpTableOwnerModuleListener
	TcpTableOwnerModuleConnections
	TcpTableOwnerModuleAll
)
View Source
const (
	UdpTableBasic uint32 = iota
	UdpTableOwnerPid
	UdpTableOwnerModule
)
View Source
const (
	TcpConnectionEstatsSynOpts uint32 = iota
	TcpConnectionEstatsData
	TcpConnectionEstatsSndCong
	TcpConnectionEstatsPath
	TcpConnectionEstatsSendBuff
	TcpConnectionEstatsRec
	TcpConnectionEstatsObsRec
	TcpConnectionEstatsBandwidth
	TcpConnectionEstatsFineRtt
	TcpConnectionEstatsMaximum
)

Variables

This section is empty.

Functions

func DwordToAddr

func DwordToAddr(addr uint32) netip.Addr

func DwordToPort

func DwordToPort(dword uint32) uint16

func FindPid

func FindPid(network string, source netip.AddrPort) (uint32, error)

func LoadEStats

func LoadEStats() error

func LoadExtendedTable

func LoadExtendedTable() error

func SetPerTcp6ConnectionEStatsSendBuffer

func SetPerTcp6ConnectionEStatsSendBuffer(row *MibTcp6Row, rw *TcpEstatsSendBuffRwV0) error

func SetPerTcpConnectionEStatsSendBuffer

func SetPerTcpConnectionEStatsSendBuffer(row *MibTcpRow, rw *TcpEstatsSendBuffRwV0) error

func WriteAndWaitAck

func WriteAndWaitAck(ctx context.Context, conn net.Conn, payload []byte) error

Types

type MibTcp6Row

type MibTcp6Row struct {
	State         uint32
	LocalAddr     [16]byte
	LocalScopeId  uint32
	LocalPort     uint32
	RemoteAddr    [16]byte
	RemoteScopeId uint32
	RemotePort    uint32
}

func GetTcp6Table

func GetTcp6Table() ([]MibTcp6Row, error)

type MibTcp6RowOwnerPid

type MibTcp6RowOwnerPid struct {
	UcLocalAddr     [16]byte
	DwLocalScopeId  uint32
	DwLocalPort     uint32
	UcRemoteAddr    [16]byte
	DwRemoteScopeId uint32
	DwRemotePort    uint32
	DwState         uint32
	DwOwningPid     uint32
}

func GetExtendedTcp6Table

func GetExtendedTcp6Table() ([]MibTcp6RowOwnerPid, error)

type MibTcp6Table

type MibTcp6Table struct {
	DwNumEntries uint32
	Table        [1]MibTcp6Row
}

type MibTcp6TableOwnerPid

type MibTcp6TableOwnerPid struct {
	DwNumEntries uint32
	Table        [1]MibTcp6RowOwnerPid
}

type MibTcpRow

type MibTcpRow struct {
	DwState      uint32
	DwLocalAddr  uint32
	DwLocalPort  uint32
	DwRemoteAddr uint32
	DwRemotePort uint32
}

func GetTcpTable

func GetTcpTable() ([]MibTcpRow, error)

type MibTcpRowOwnerPid

type MibTcpRowOwnerPid struct {
	DwState      uint32
	DwLocalAddr  uint32
	DwLocalPort  uint32
	DwRemoteAddr uint32
	DwRemotePort uint32
	DwOwningPid  uint32
}

func GetExtendedTcpTable

func GetExtendedTcpTable() ([]MibTcpRowOwnerPid, error)

type MibTcpTable

type MibTcpTable struct {
	DwNumEntries uint32
	Table        [1]MibTcpRow
}

type MibTcpTableOwnerPid

type MibTcpTableOwnerPid struct {
	DwNumEntries uint32
	Table        [1]MibTcpRowOwnerPid
}

type MibUdp6RowOwnerPid

type MibUdp6RowOwnerPid struct {
	UcLocalAddr    [16]byte
	DwLocalScopeId uint32
	DwLocalPort    uint32
	DwOwningPid    uint32
}

func GetExtendedUdp6Table

func GetExtendedUdp6Table() ([]MibUdp6RowOwnerPid, error)

type MibUdp6TableOwnerPid

type MibUdp6TableOwnerPid struct {
	DwNumEntries uint32
	Table        [1]MibUdp6RowOwnerPid
}

type MibUdpRowOwnerPid

type MibUdpRowOwnerPid struct {
	DwLocalAddr uint32
	DwLocalPort uint32
	DwOwningPid uint32
}

func GetExtendedUdpTable

func GetExtendedUdpTable() ([]MibUdpRowOwnerPid, error)

type MibUdpTableOwnerPid

type MibUdpTableOwnerPid struct {
	DwNumEntries uint32
	Table        [1]MibUdpRowOwnerPid
}

type TcpEstatsSendBuffRwV0

type TcpEstatsSendBuffRwV0 struct {
	EnableCollection bool
}

type TcpEstatsSendBufferRodV0

type TcpEstatsSendBufferRodV0 struct {
	CurRetxQueue uint64
	MaxRetxQueue uint64
	CurAppWQueue uint64
	MaxAppWQueue uint64
}

func GetPerTcp6ConnectionEStatsSendBuffer

func GetPerTcp6ConnectionEStatsSendBuffer(row *MibTcp6Row) (*TcpEstatsSendBufferRodV0, error)

func GetPerTcpConnectionEStatsSendBuffer

func GetPerTcpConnectionEStatsSendBuffer(row *MibTcpRow) (*TcpEstatsSendBufferRodV0, error)

Jump to

Keyboard shortcuts

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