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 ¶
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)
Click to show internal directories.
Click to hide internal directories.