client

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2016 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ServerAddr        string = "0.0.0.0"
	ServerPort        int64  = 7000
	LogFile           string = "console"
	LogWay            string = "console"
	LogLevel          string = "info"
	HeartBeatInterval int64  = 20
	HeartBeatTimeout  int64  = 90
)

common config

View Source
var ProxyClients map[string]*ProxyClient = make(map[string]*ProxyClient)

Functions

func LoadConf

func LoadConf(confFile string) (err error)

Types

type ProxyClient

type ProxyClient struct {
	Name          string
	AuthToken     string
	LocalIp       string
	LocalPort     int64
	UseEncryption bool
}

func (*ProxyClient) GetLocalConn

func (p *ProxyClient) GetLocalConn() (c *conn.Conn, err error)

func (*ProxyClient) GetRemoteConn

func (p *ProxyClient) GetRemoteConn(addr string, port int64) (c *conn.Conn, err error)

func (*ProxyClient) StartTunnel

func (p *ProxyClient) StartTunnel(serverAddr string, serverPort int64) (err error)

Jump to

Keyboard shortcuts

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