protocol

package
v0.2.7-0...-d8d973c Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2017 License: MIT Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command uint8

func RegisterFrame

func RegisterFrame(ucode uint8, name string, priority bool) Command

func (Command) Priority

func (c Command) Priority() bool

func (Command) String

func (c Command) String() string

type Op

type Op struct {
	Cmd    Command              // 1 byte
	Local  uint64               // 9 byte
	Remote uint64               // 17 byte
	LPort  uint32               // 21 byte
	RPort  uint32               // 25 byte
	Data   skykiss.BytesPackage // 29 byte with header
}

func (*Op) Decode

func (op *Op) Decode(buf []byte)

func (Op) Encode

func (op Op) Encode() skykiss.BytesPackage

func (Op) String

func (op Op) String() string

Jump to

Keyboard shortcuts

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