client

package
v0.0.0-...-1bf96ee Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2022 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartClient

func StartClient(innerNetClientDto *innerNet.InnerNetClientDto) error

Types

type TcpClient

type TcpClient struct {
	ServerAdd         string
	InnerNetClientDto *innerNet.InnerNetClientDto
	TcpConn           *net.TCPConn
	TunConn           *water.Interface
	WinTunConn        tun.Device
	HeartbeatTime     time.Time
}

func NewTcpClient

func NewTcpClient(innerNetClientDto *innerNet.InnerNetClientDto) (*TcpClient, error)

func (*TcpClient) Recover

func (tc *TcpClient) Recover() error

func (*TcpClient) Start

func (tc *TcpClient) Start() error

func (*TcpClient) Stop

func (tc *TcpClient) Stop() error

Jump to

Keyboard shortcuts

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