Versions in this module Expand all Collapse all v1 v1.1.1 Nov 25, 2024 v0 v0.2.21 Nov 25, 2024 Changes in this version + func CopyBuffer(dst io.Writer, src io.Reader, bufSize int) error + func IsIPv4(address string) bool + func NewReadWriteConn(r io.Reader, w io.Writer, c net.Conn) net.Conn + func ParseInterfaceAddr(ifceName, network string) (ifce string, addr []net.Addr, err error) + func Resolve(ctx context.Context, network, addr string, r resolver.Resolver, ...) (string, error) + func Transport(rw1, rw2 io.ReadWriter) error + type AddrPortRange string + func (p AddrPortRange) Addrs() (addrs []string) + type ClientAddr interface + ClientAddr func() net.Addr + type ListenConfig struct + Netns string + func (lc *ListenConfig) Listen(ctx context.Context, network, address string) (net.Listener, error) + func (lc *ListenConfig) ListenPacket(ctx context.Context, network, address string) (net.PacketConn, error) + type PortRange struct + Max int + Min int + func (pr *PortRange) Contains(port int) bool + func (pr *PortRange) Parse(s string) error + type RemoteAddr interface + RemoteAddr func() net.Addr + type SetBuffer interface + SetReadBuffer func(bytes int) error + SetWriteBuffer func(bytes int) error + type SetDSCP interface + SetDSCP func(int) error + type SyscallConn interface + SyscallConn func() (syscall.RawConn, error)