Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SPool = &sync.Pool{ New: func() interface{} { return make([]byte, config.SmallBufferSize) }, } MPool = &sync.Pool{ New: func() interface{} { return make([]byte, config.MediumBufferSize) }, } LPool = &sync.Pool{ New: func() interface{} { return make([]byte, config.LargeBufferSize) }, } )
View Source
var ( // ErrorEmptyChain is an error that implies the chain is empty. ErrorEmptyChain = errors.New("empty chain") )
View Source
var (
ErrorInvalidNode = errors.New("invalid node")
)
View Source
var Server8422, _ = net.ResolveUDPAddr("udp", "127.0.0.1:8422")
Functions ¶
Types ¶
type Chain ¶
type Chain struct { Retries int // contains filtered or unexported fields }
func (*Chain) DialContext ¶
type Client ¶
type Client struct { Connector Transporter }
type Connector ¶
func UDPOverTCPTunnelConnector ¶
func UDPOverTCPTunnelConnector() Connector
type Handler ¶
func TunHandler ¶
TunHandler creates a handler for tun tunnel.
type Node ¶
type Node struct { Addr string Protocol string Remote string // remote address, used by tcp/udp port forwarding Values url.Values Client *Client }
type Transporter ¶
func TCPTransporter ¶
func TCPTransporter() Transporter
Click to show internal directories.
Click to hide internal directories.