acceptance

package
v0.0.0-...-b2761b6 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2014 License: GPL-3.0, GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientSession

type ClientSession struct {
	// configuration
	DeviceId        string
	ServerAddr      string
	ExchangeTimeout time.Duration
	CertPEMBlock    []byte
	ReportPings     bool
	Levels          map[string]int64
	Insecure        bool // don't verify certs
	// connection
	Connection net.Conn
}

ClienSession holds a client<->server session and its configuration.

func (*ClientSession) Dial

func (sess *ClientSession) Dial() error

Dial connects to a server using the configuration in the ClientSession and sets up the connection.

func (*ClientSession) Run

func (sess *ClientSession) Run(events chan<- string) error

Run the session with the server, emits a stream of events.

Directories

Path Synopsis
acceptanceclient for playing
acceptanceclient for playing

Jump to

Keyboard shortcuts

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