network

package
v0.0.0-...-9874ac0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDisconnected = errors.New("disconnected")
)

Functions

This section is empty.

Types

type ReadCallback

type ReadCallback func(con *ServerConnection, text string)

type ServerConnection

type ServerConnection struct {
	// contains filtered or unexported fields
}

func Connect

func Connect(address string) (*ServerConnection, error)

func (*ServerConnection) ClickField

func (c *ServerConnection) ClickField(fieldIndex int) error

func (*ServerConnection) Close

func (c *ServerConnection) Close() error

func (*ServerConnection) Read

func (c *ServerConnection) Read(callback ReadCallback)

func (*ServerConnection) ReadLine

func (c *ServerConnection) ReadLine() (string, error)

func (*ServerConnection) Send

func (c *ServerConnection) Send(text string) error

Jump to

Keyboard shortcuts

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