Documentation ¶
Index ¶
- 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
- type ClientAddr
- type ListenConfig
- type PortRange
- type RemoteAddr
- type SetBuffer
- type SetDSCP
- type SyscallConn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewReadWriteConn ¶ added in v0.2.0
func ParseInterfaceAddr ¶
func Transport ¶
func Transport(rw1, rw2 io.ReadWriter) error
Types ¶
type AddrPortRange ¶
type AddrPortRange string
AddrPortRange is the network address with port range supported. e.g. 192.168.1.1:0-65535
func (AddrPortRange) Addrs ¶
func (p AddrPortRange) Addrs() (addrs []string)
type ClientAddr ¶ added in v0.2.6
type ListenConfig ¶
type ListenConfig struct { Netns string net.ListenConfig }
func (*ListenConfig) ListenPacket ¶
func (lc *ListenConfig) ListenPacket(ctx context.Context, network, address string) (net.PacketConn, error)
type RemoteAddr ¶
type SyscallConn ¶
Click to show internal directories.
Click to hide internal directories.