# Functions
NewEndpoint create a new Endpoint.
NewProxy create a new proxy.
NewTunClientHandler create a new tunnel handler for proxy.
NewTunServerHandler create a new tunnel handler for endpoint.
WithConnectAddress sets remote endpoint connect address opt.
WithDownloadCounter sets download counter opt.
WithListenAddress sets local proxy listen address opt.
WithTunClient sets tunnel client opt.
WithTunClientCrypt sets tunnel crypt opt.
WithTunServer sets tunnel server opt.
WithTunServerCrypt sets tunnel crypt opt.
WithUploadCounter sets upload counter opt.
# Constants
command values.
command values.
command values.
command values.
command values.
command values.
# Variables
default proxy options.
default proxy options.
default proxy options.
default proxy options.
default endpoint options.
# Structs
Endpoint for connecting remote tcp server.
EndpointOptions is the options of endpoint.
Proxy for proxying remote tcp server to local address.
ProxyOptions is options of proxy.
# Type aliases
Cmd is command code of tunnel packet.
EndpointOption is option setter for endpoint.
ProxyOption is option setter for proxy.