client

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: GPL-3.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CloseClient bool
View Source
var (
	LocalServer []*net.TCPListener
)
View Source
var NowStatus int

Functions

func CloseLocalServer

func CloseLocalServer()

func GetTaskStatus

func GetTaskStatus(path string)

func GetTlsEnable

func GetTlsEnable() bool

func NewConn

func NewConn(tp string, vkey string, server string, connType string, proxyUrl string) (*conn.Conn, error)

Create a new connection with the server and verify it

func NewHttpProxyConn

func NewHttpProxyConn(url *url.URL, remoteAddr string) (net.Conn, error)

http proxy connection

func RegisterLocalIp

func RegisterLocalIp(server string, vKey string, tp string, proxyUrl string, hour int)

func SetTlsEnable

func SetTlsEnable(tlsEnable11 bool)

func StartFromFile

func StartFromFile(path string)

func StartFromString

func StartFromString(str string)

func StartLocalServer

func StartLocalServer(l *config.LocalServer, config *config.CommonConfig) error

Types

type TRPClient

type TRPClient struct {
	// contains filtered or unexported fields
}

func NewRPClient

func NewRPClient(svraddr string, vKey string, bridgeConnType string, proxyUrl string, cnf *config.Config, disconnectTime int) *TRPClient

new client

func (*TRPClient) Close

func (s *TRPClient) Close()

func (*TRPClient) Start

func (s *TRPClient) Start()

start

Jump to

Keyboard shortcuts

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