Documentation
¶
Rendered for windows/amd64
Index ¶
Constants ¶
View Source
const ( TCPTableOwnerPIDAll uint32 = 5 TCPTableOwnerPIDListener uint32 = 3 )
View Source
const ( IF_MAX_STRING_SIZE = 256 IF_MAX_PHYS_ADDRESS_LENGTH = 32 )
Constants from Windows headers
Variables ¶
This section is empty.
Functions ¶
func GetOwnerPIDOfTCPPort ¶
func GetTCPConnectionStates ¶
func GetTCPConnectionStates(family uint32) (map[MIB_TCP_STATE]uint32, error)
Types ¶
type BigEndianUint32 ¶
type BigEndianUint32 uint32
type MIB_IF_ROW2 ¶ added in v0.31.0
type MIB_IF_ROW2 struct { InterfaceLuid uint64 InterfaceIndex uint32 InterfaceGuid ole.GUID Alias [IF_MAX_STRING_SIZE + 1]uint16 Description [IF_MAX_STRING_SIZE + 1]uint16 PhysicalAddressLength uint32 PhysicalAddress [IF_MAX_PHYS_ADDRESS_LENGTH]byte PermanentPhysicalAddress [IF_MAX_PHYS_ADDRESS_LENGTH]byte Mtu uint32 Type uint32 TunnelType uint32 MediaType uint32 PhysicalMediumType uint32 AccessType uint32 DirectionType uint32 InterfaceAndOperStatusFlags uint8 OperStatus uint32 AdminStatus uint32 MediaConnectState uint32 NetworkGuid [16]byte ConnectionType uint32 TransmitLinkSpeed uint64 ReceiveLinkSpeed uint64 InOctets uint64 InUcastPkts uint64 InNUcastPkts uint64 InDiscards uint64 InErrors uint64 InUnknownProtos uint64 InUcastOctets uint64 InMulticastOctets uint64 InBroadcastOctets uint64 OutOctets uint64 OutUcastPkts uint64 OutNUcastPkts uint64 OutDiscards uint64 OutErrors uint64 OutUcastOctets uint64 OutMulticastOctets uint64 OutBroadcastOctets uint64 OutQLen uint64 }
MIB_IF_ROW2 represents network interface statistics
type MIB_TCP6ROW_OWNER_PID ¶
type MIB_TCP6ROW_OWNER_PID struct {
// contains filtered or unexported fields
}
MIB_TCP6ROW_OWNER_PID structure for IPv6. https://learn.microsoft.com/en-us/windows/win32/api/tcpmib/ns-tcpmib-mib_tcp6row_owner_pid
type MIB_TCPROW_OWNER_PID ¶
type MIB_TCPROW_OWNER_PID struct {
// contains filtered or unexported fields
}
MIB_TCPROW_OWNER_PID structure for IPv4. https://learn.microsoft.com/en-us/windows/win32/api/tcpmib/ns-tcpmib-mib_tcprow_owner_pid
type MIB_TCP_STATE ¶
type MIB_TCP_STATE uint32
const ( TCPStateClosed MIB_TCP_STATE TCPStateListening TCPStateSynSent TCPStateSynRcvd TCPStateEstablished TCPStateFinWait1 TCPStateFinWait2 TCPStateCloseWait TCPStateClosing TCPStateLastAck TCPStateTimeWait TCPStateDeleteTcb )
func (MIB_TCP_STATE) String ¶
func (state MIB_TCP_STATE) String() string
Click to show internal directories.
Click to hide internal directories.