Versions in this module Expand all Collapse all go1 go1.18.10 Jan 10, 2023 Changes in this version + type AfterFilter func(*Status) error + type Cookie uint64 + func (c Cookie) Family() int + func (c Cookie) Protocol() int + func (c Cookie) Type() int + type Filter func(*Status) (AfterFilter, error) + type FilterType int + const FilterAccept + const FilterClose + const FilterConnect + const FilterGetsockoptInt + const FilterListen + const FilterSocket + type Sockets map[int]Status — darwin/amd64, js/wasm, linux/amd64 + type Sockets map[syscall.Handle]Status — windows/amd64 + type Stat struct + AcceptFailed uint64 + Accepted uint64 + CloseFailed uint64 + Closed uint64 + ConnectFailed uint64 + Connected uint64 + Family int + ListenFailed uint64 + Listened uint64 + OpenFailed uint64 + Opened uint64 + Protocol int + Type int + func (st Stat) String() string + type Status struct + Cookie Cookie + Err error + SocketErr error + func (so Status) String() string + type Switch struct + func (sw *Switch) Accept(s int) (ns int, sa syscall.Sockaddr, err error) + func (sw *Switch) Accept4(s, flags int) (ns int, sa syscall.Sockaddr, err error) + func (sw *Switch) AcceptEx(ls syscall.Handle, as syscall.Handle, b *byte, rxdatalen uint32, ...) error + func (sw *Switch) Close(s int) (err error) + func (sw *Switch) Closesocket(s syscall.Handle) (err error) + func (sw *Switch) Connect(s int, sa syscall.Sockaddr) (err error) + func (sw *Switch) Connect(s syscall.Handle, sa syscall.Sockaddr) (err error) + func (sw *Switch) ConnectEx(s syscall.Handle, sa syscall.Sockaddr, b *byte, n uint32, nwr *uint32, ...) (err error) + func (sw *Switch) GetsockoptInt(s, level, opt int) (soerr int, err error) + func (sw *Switch) Listen(s syscall.Handle, backlog int) (err error) + func (sw *Switch) Listen(s, backlog int) (err error) + func (sw *Switch) Set(t FilterType, f Filter) + func (sw *Switch) Socket(family, sotype, proto int) (s int, err error) + func (sw *Switch) Socket(family, sotype, proto int) (s syscall.Handle, err error) + func (sw *Switch) Sockets() Sockets + func (sw *Switch) Stats() []Stat + func (sw *Switch) WSASocket(family, sotype, proto int32, protinfo *syscall.WSAProtocolInfo, group uint32, ...) (s syscall.Handle, err error)