Versions in this module Expand all Collapse all v1 v1.2.0 Nov 11, 2023 Changes in this version + const BufSize + const CHECK_TIMEOUTS_INTERVAL + const LWIP_ERR_ABRT + const LWIP_ERR_CLSD + const LWIP_ERR_CONN + const LWIP_ERR_OK + const TCP_POLL_INTERVAL + var OutputFn func([]byte) (int, error) + func FreeBytes(b []byte) + func Handle(conn net.Conn, targetAddress, proxyAddress string) error + func NewBytes(size int) []byte + func NewLWIPError(code int) error + func ParseTCPAddr(addr string, port uint16) *net.TCPAddr + func ParseUDPAddr(addr string, port uint16) *net.UDPAddr + func RegisterOutputFn(fn func([]byte) (int, error)) + func RegisterTCPConnHandler(h TCPConnHandler) + func RegisterUDPConnHandler(h UDPConnHandler) + func SetBufferPool(p *sync.Pool) + type LWIPStack interface + Close func() error + RestartTimeouts func() + Write func([]byte) (int, error) + func NewLWIPStack() LWIPStack + type TCPConn interface + Abort func() + Close func() error + CloseRead func() error + CloseWrite func() error + Err func(err error) + LocalAddr func() net.Addr + LocalClosed func() error + Poll func() error + Read func(data []byte) (int, error) + Receive func(data []byte) error + RemoteAddr func() net.Addr + Sent func(len uint16) error + SetDeadline func(t time.Time) error + SetReadDeadline func(t time.Time) error + SetWriteDeadline func(t time.Time) error + Write func(data []byte) (int, error) + type TCPConnHandler interface + Handle func(conn net.Conn, target string) error + type UDPConn interface + Close func() error + LocalAddr func() *net.UDPAddr + ReceiveTo func(data []byte, addr *net.UDPAddr) error + WriteFrom func(data []byte, addr *net.UDPAddr) (int, error) + type UDPConnHandler interface + Connect func(conn UDPConn, target *net.UDPAddr) error + ReceiveTo func(conn UDPConn, data []byte, addr *net.UDPAddr) error