Documentation ¶ Index ¶ type Conn func NewConn(port int) (res *Conn, err error) func NewConnWithLogger(port int, logger *zap.Logger) (res *Conn, err error) func (c *Conn) Close() error func (c *Conn) ReadFrom(p []byte) (n int, addr netip.AddrPort, err error) func (c *Conn) Refresh() func (c *Conn) WriteTo(p []byte, addr netip.AddrPort) (n int, err error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Conn ¶ type Conn struct { // contains filtered or unexported fields } func NewConn ¶ func NewConn(port int) (res *Conn, err error) func NewConnWithLogger ¶ func NewConnWithLogger(port int, logger *zap.Logger) (res *Conn, err error) func (*Conn) Close ¶ func (c *Conn) Close() error func (*Conn) ReadFrom ¶ func (c *Conn) ReadFrom(p []byte) (n int, addr netip.AddrPort, err error) func (*Conn) Refresh ¶ func (c *Conn) Refresh() func (*Conn) WriteTo ¶ func (c *Conn) WriteTo(p []byte, addr netip.AddrPort) (n int, err error) Source Files ¶ View all Source files hijack.go Directories ¶ Show internal Expand all Path Synopsis receiver rawsockrecv xdprecv xdprecv/xdp sender rawsocksend Click to show internal directories. Click to hide internal directories.