client

package
v0.0.0-...-5fb5acb Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ClientName string
	ScriptFile string
)

Functions

func Shutdown

func Shutdown(clients ClientConfig) int

func Start

func Start()

Types

type ClientConfig

type ClientConfig struct {
	ClientName string
	Servers    []SvConfig
}

func Parse

func Parse(configPath string) (ClientConfig, error)

type SvConfig

type SvConfig struct {
	RemotePort        uint16
	RemoteAddr        string
	ClientKey         string
	RemoteV6LocalAddr string
	ClientV6LocalAddr string
	MTU               int
}

func (*SvConfig) Connect

func (a *SvConfig) Connect(conn *net.Conn, clientId int, whoami Whoami) error

func (*SvConfig) Ping

func (a *SvConfig) Ping(clientId int) error

func (SvConfig) Whoami

func (a SvConfig) Whoami(conn *net.Conn) (Whoami, error)

Ask server current IP and Port

type Whoami

type Whoami struct {
	IP              string
	PORT            string
	REMOTE_FOU_PORT int
}

Jump to

Keyboard shortcuts

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