client

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2019 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeRandomField

func MakeRandomField(sta *State) []byte

func MakeSessionTicket

func MakeSessionTicket(sta *State) []byte

Types

type State

type State struct {
	SS_LOCAL_HOST  string
	SS_LOCAL_PORT  string
	SS_REMOTE_HOST string
	SS_REMOTE_PORT string

	Now func() time.Time

	UID []byte

	TicketTimeHint int
	ServerName     string
	MaskBrowser    string
	NumConn        int
	// contains filtered or unexported fields
}

State stores global variables

func InitState

func InitState(localHost, localPort, remoteHost, remotePort string, nowFunc func() time.Time) *State

func (*State) ParseConfig

func (sta *State) ParseConfig(conf string) (err error)

ParseConfig parses the config (either a path to json or Android config) into a State variable

func (*State) SetSessionID

func (sta *State) SetSessionID(id uint32)

Directories

Path Synopsis
Firefox 58
Firefox 58

Jump to

Keyboard shortcuts

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