client

package
v0.0.0-...-a69ce32 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PTcpClient

type PTcpClient struct {
	ServerAdd string
	Cfg       *config.Config
	PTcpConn  net.Conn
	TunConn   tun.Tun
}

func NewPTcpClient

func NewPTcpClient(cfg *config.Config) (*PTcpClient, error)

func (*PTcpClient) Start

func (tc *PTcpClient) Start() error

func (*PTcpClient) Stop

func (tc *PTcpClient) Stop() error

type TcpClient

type TcpClient struct {
	ServerAdd string
	Cfg       *config.Config
	TcpConn   *net.TCPConn
	TunConn   tun.Tun
}

func NewTcpClient

func NewTcpClient(cfg *config.Config) (*TcpClient, error)

func (*TcpClient) Start

func (tc *TcpClient) Start() error

func (*TcpClient) Stop

func (tc *TcpClient) Stop() error

type UdpClient

type UdpClient struct {
	ServerAdd string
	UdpConn   net.Conn
	TunConn   tun.Tun
}

func NewUdpClient

func NewUdpClient(cfg *config.Config) (*UdpClient, error)

func (*UdpClient) Start

func (uc *UdpClient) Start() error

func (*UdpClient) Stop

func (uc *UdpClient) Stop() error

Jump to

Keyboard shortcuts

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