Versions in this module Expand all Collapse all v1 v1.5.43 May 2, 2024 v1.5.42 May 2, 2024 Changes in this version + const Close — linux/amd64, windows/amd64 + const CloseWait — linux/amd64, windows/amd64 + const Closing — linux/amd64, windows/amd64 + const DeleteTcb — windows/amd64 + const Established — linux/amd64, windows/amd64 + const FinWait1 — linux/amd64, windows/amd64 + const FinWait2 — linux/amd64, windows/amd64 + const INP_IPV4 — darwin/amd64 + const INP_IPV6 — darwin/amd64 + const InvalidHandleValue — windows/amd64 + const LastAck — linux/amd64, windows/amd64 + const Listen — linux/amd64, windows/amd64 + const MaxPath — windows/amd64 + const SynRecv — linux/amd64, windows/amd64 + const SynSent — linux/amd64, windows/amd64 + const TCP — darwin/amd64 + const Th32csSnapProcess — windows/amd64 + const TimeWait — linux/amd64, windows/amd64 + const UDP — darwin/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 In6Addr struct — darwin/amd64 + X__u6_addr [16]byte + type InAddr4in6 struct — darwin/amd64 + Addr4 [4]byte + Pad32 [3]uint32 + type InPCB64ListEntry struct — darwin/amd64 + Next uint64 + Prev uint64 + 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 + const CloseWait + const Closed + const Closing + const Established + const FinWait1 + const FinWait2 + const LastAck + const Listen + const SynRecvd + const SynSent + const TimeWait + 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 + type XSockbuf struct — darwin/amd64 + Cc uint32 + Flags int16 + Hiwat uint32 + Lowat int32 + Mbcnt uint32 + Mbmax uint32 + Timeo int16 + type XSocket64 struct — darwin/amd64 + Pad_cgo_0 [8]byte + Pad_cgo_1 [8]byte + So_error uint16 + So_incqlen int16 + So_linger int16 + So_oobmark uint32 + So_options int16 + So_pgid int32 + So_qlen int16 + So_qlimit int16 + So_rcv XSockbuf + So_snd XSockbuf + So_state int16 + So_timeo int16 + So_type int16 + So_uid uint32 + Xso_family int32 + Xso_len uint32 + Xso_protocol int32 + type XTCPcb64 struct — darwin/amd64 + Cc_recv uint32 + Cc_send uint32 + Irs uint32 + Iss uint32 + Last_ack_sent uint32 + Max_sndwnd uint32 + Pad_cgo_0 [256]byte + Rcv_adv uint32 + Rcv_nxt uint32 + Rcv_scale uint8 + Rcv_up uint32 + Rcv_wnd uint32 + Request_r_scale uint8 + Requested_s_scale uint8 + Snd_cwnd uint32 + Snd_cwnd_prev uint32 + Snd_max uint32 + Snd_nxt uint32 + Snd_recover uint32 + Snd_scale uint8 + Snd_ssthresh uint32 + Snd_ssthresh_prev uint32 + Snd_una uint32 + Snd_up uint32 + Snd_wl1 uint32 + Snd_wl2 uint32 + Snd_wnd uint32 + T_badrxtwin uint32 + T_dupacks int32 + T_flags uint32 + T_force int32 + T_iobc int8 + T_maxopd uint32 + T_maxseg uint32 + T_oobflags int8 + T_rcvtime uint32 + T_rtseq uint32 + T_rttmin uint32 + T_rtttime int32 + T_rttupdated uint32 + T_rttvar int32 + T_rxtcur int32 + T_rxtshift int32 + T_segq uint64 + T_softerror int32 + T_srtt int32 + T_starttime uint32 + T_state int32 + T_timer [4]int32 + Ts_recent uint32 + Ts_recent_age uint32 + Xt_alignment_hack uint64 + Xt_len uint32 + type Xinpcb64 struct — darwin/amd64 + Inp_dependfaddr [16]byte + Inp_dependladdr [16]byte + Inp_flags int32 + Inp_flow uint32 + Inp_fport uint16 + Inp_ip_p uint8 + Inp_ip_ttl uint8 + Inp_lport uint16 + Inp_vflag uint8 + Pad_cgo_0 [64]byte + Pad_cgo_1 [1]byte + Pad_cgo_2 [8]byte + Xi_inpp uint64 + Xi_len uint64 + Xi_socket XSocket64 + type Xinpgen struct — darwin/amd64 + Count uint32 + Gen uint64 + Len uint32 + Sogen uint64