server

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2016 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BindAddr         string = "0.0.0.0"
	BindPort         int64  = 9527
	LogFile          string = "./frps.log"
	LogLevel         string = "warn"
	LogWay           string = "file"
	HeartBeatTimeout int64  = 30
	UserConnTimeout  int64  = 10
)

common config

View Source
var ProxyServers map[string]*ProxyServer = make(map[string]*ProxyServer)

Functions

func LoadConf

func LoadConf(confFile string) (err error)

Types

type ProxyServer

type ProxyServer struct {
	Name       string
	Passwd     string
	BindAddr   string
	ListenPort int64
	Status     int64
	// contains filtered or unexported fields
}

func (*ProxyServer) Close

func (p *ProxyServer) Close()

func (*ProxyServer) GetNewCliConn

func (p *ProxyServer) GetNewCliConn(c *conn.Conn)

func (*ProxyServer) Init

func (p *ProxyServer) Init()

func (*ProxyServer) Lock

func (p *ProxyServer) Lock()

func (*ProxyServer) Start

func (p *ProxyServer) Start() (err error)

start listening for user conns

func (*ProxyServer) Unlock

func (p *ProxyServer) Unlock()

func (*ProxyServer) WaitUserConn

func (p *ProxyServer) WaitUserConn() (closeFlag bool)

Jump to

Keyboard shortcuts

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