Versions in this module Expand all Collapse all v1 v1.0.0 Apr 27, 2022 Changes in this version + const Close — darwin/amd64, linux/amd64, windows/amd64 + const CloseWait — darwin/amd64, linux/amd64, windows/amd64 + const Closing — darwin/amd64, linux/amd64, windows/amd64 + const DeleteTcb — windows/amd64 + const Established — darwin/amd64, linux/amd64, windows/amd64 + const FinWait1 — darwin/amd64, linux/amd64, windows/amd64 + const FinWait2 — darwin/amd64, linux/amd64, windows/amd64 + const InvalidHandleValue — windows/amd64 + const LastAck — darwin/amd64, linux/amd64, windows/amd64 + const Listen — darwin/amd64, linux/amd64, windows/amd64 + const MaxPath — windows/amd64 + const SynRecv — darwin/amd64, linux/amd64, windows/amd64 + const SynSent — darwin/amd64, linux/amd64, windows/amd64 + const Th32csSnapProcess — windows/amd64 + const TimeWait — darwin/amd64, linux/amd64, windows/amd64 + var ErrNotEnoughFields = errors.New("gonetstat: not enough fields in the line") — linux/amd64 + func GetExtendedUDPTable(order bool, af uint32, cl UDPTableClass) ([]byte, error) — windows/amd64 + func NoopFilter(*SockTabEntry) bool + func Process32First(handle syscall.Handle, pe *Processentry32) error — windows/amd64 + func Process32Next(handle syscall.Handle, pe *Processentry32) error — windows/amd64 + func StringFromNullTerminated(b []byte) string — windows/amd64 + type AcceptFn func(*SockTabEntry) bool + type MibTCP6Row2 struct — windows/amd64 + LocalAddr WinSock6 + OffloadState uint32 + RemoteAddr WinSock6 + State uint32 + func (m *MibTCP6Row2) LocalSock() *SockAddr + func (m *MibTCP6Row2) RemoteSock() *SockAddr + func (m *MibTCP6Row2) SockState() SkState + type MibTCP6Table2 struct — windows/amd64 + NumEntries uint32 + Table [1]MibTCP6Row2 + func GetTCP6Table2(order bool) (*MibTCP6Table2, error) + func (t *MibTCP6Table2) Rows() []MibTCP6Row2 + type MibTCPRow2 struct — windows/amd64 + LocalAddr WinSock + OffloadState uint32 + RemoteAddr WinSock + State uint32 + func (m *MibTCPRow2) LocalSock() *SockAddr + func (m *MibTCPRow2) RemoteSock() *SockAddr + func (m *MibTCPRow2) SockState() SkState + type MibTCPTable2 struct — windows/amd64 + NumEntries uint32 + Table [1]MibTCPRow2 + func GetTCPTable2(order bool) (*MibTCPTable2, error) + func (t *MibTCPTable2) Rows() []MibTCPRow2 + type MibUDP6RowOwnerPID struct — windows/amd64 + func (m *MibUDP6RowOwnerPID) LocalSock() *SockAddr + func (m *MibUDP6RowOwnerPID) RemoteSock() *SockAddr + func (m *MibUDP6RowOwnerPID) SockState() SkState + type MibUDP6TableOwnerPID struct — windows/amd64 + NumEntries uint32 + Table [1]MibUDP6RowOwnerPID + func GetUDP6TableOwnerPID(order bool) (*MibUDP6TableOwnerPID, error) + func (t *MibUDP6TableOwnerPID) Rows() []MibUDP6RowOwnerPID + type MibUDPRowOwnerPID struct — windows/amd64 + func (m *MibUDPRowOwnerPID) LocalSock() *SockAddr + func (m *MibUDPRowOwnerPID) RemoteSock() *SockAddr + func (m *MibUDPRowOwnerPID) SockState() SkState + type MibUDPTableOwnerPID struct — windows/amd64 + NumEntries uint32 + Table [1]MibUDPRowOwnerPID + func GetUDPTableOwnerPID(order bool) (*MibUDPTableOwnerPID, error) + func (t *MibUDPTableOwnerPID) Rows() []MibUDPRowOwnerPID + type Process struct + Name string + Pid int + func (p *Process) String() string + type ProcessSnapshot syscall.Handle — windows/amd64 + func CreateToolhelp32Snapshot(flags uint32, pid uint32) (ProcessSnapshot, error) + func (snp ProcessSnapshot) Close() error + func (snp ProcessSnapshot) ProcPIDToName(pid uint32) string + type Processentry32 struct — windows/amd64 + CntThreads uint32 + CntUsage uint32 + ExeFile [MaxPath]byte + Flags uint32 + PriClassBase int32 + Size uint32 + Th32DefaultHeapID uintptr + Th32ModuleID uint32 + Th32ParentProcessID uint32 + Th32ProcessID uint32 + type SkState uint8 + func (s SkState) String() string + type SockAddr struct + IP net.IP + Port uint16 + func (s *SockAddr) String() string + type SockTabEntry struct + LocalAddr *SockAddr + Process *Process + RemoteAddr *SockAddr + State SkState + UID uint32 + func TCP6Socks(accept AcceptFn) ([]SockTabEntry, error) + func TCPSocks(accept AcceptFn) ([]SockTabEntry, error) + func UDP6Socks(accept AcceptFn) ([]SockTabEntry, error) + func UDPSocks(accept AcceptFn) ([]SockTabEntry, error) + type UDPTableClass uint — windows/amd64 + const UDPTableBasic + const UDPTableOwnerModule + const UDPTableOwnerPID + type WinPid uint32 — windows/amd64 + func (pid WinPid) Process(snp ProcessSnapshot) *Process + type WinSock struct — windows/amd64 + Addr uint32 + Port uint32 + func (w *WinSock) Sock() *SockAddr + type WinSock6 struct — windows/amd64 + Addr [net.IPv6len]byte + Port uint32 + ScopeID uint32 + func (w *WinSock6) Sock() *SockAddr