bridge

package
v0.26.10 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bridge added in v0.0.10

type Bridge struct {
	TunnelPort int //通信隧道端口
	Client     sync.Map
	Register   sync.Map

	OpenTask    chan *file.Tunnel
	CloseTask   chan *file.Tunnel
	CloseClient chan int
	SecretChan  chan *conn.Secret
	// contains filtered or unexported fields
}

func NewTunnel

func NewTunnel(tunnelPort int, tunnelType string, ipVerify bool, runList sync.Map, disconnectTime int) *Bridge

func (*Bridge) DelClient added in v0.0.12

func (s *Bridge) DelClient(id int)

func (*Bridge) GetHealthFromClient added in v0.18.1

func (s *Bridge) GetHealthFromClient(id int, c *conn.Conn)

get health information form client

func (*Bridge) SendLinkInfo added in v0.0.12

func (s *Bridge) SendLinkInfo(clientId int, link *conn.Link, t *file.Tunnel) (target net.Conn, err error)

func (*Bridge) StartTunnel added in v0.0.10

func (s *Bridge) StartTunnel() error

type Client added in v0.0.12

type Client struct {
	Version string
	// contains filtered or unexported fields
}

func NewClient added in v0.0.14

func NewClient(t, f *nps_mux.Mux, s *conn.Conn, vs string) *Client

Jump to

Keyboard shortcuts

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