hijack

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL