common

package
v0.0.0-...-8613b64 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mapping

type Mapping struct {
	Ip         string
	Port       int
	RemotePort int
	// contains filtered or unexported fields
}

func NewMapping

func NewMapping(ip string, port int, remotePort int, isOn bool) *Mapping

func (*Mapping) Addr

func (self *Mapping) Addr() string

func (*Mapping) IsOn

func (self *Mapping) IsOn() bool

func (*Mapping) TurnOff

func (self *Mapping) TurnOff()

func (*Mapping) TurnOn

func (self *Mapping) TurnOn()

type ProtocolReader

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

func (*ProtocolReader) GetBool

func (self *ProtocolReader) GetBool() (b bool, err error)

func (*ProtocolReader) GetInt

func (self *ProtocolReader) GetInt() (i int, err error)

func (*ProtocolReader) GetString

func (self *ProtocolReader) GetString() (str string, err error)

func (*ProtocolReader) SetReader

func (self *ProtocolReader) SetReader(reader *bufio.Reader)

Jump to

Keyboard shortcuts

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