common

package
v0.0.0-...-d0fea3d Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2018 License: GPL-3.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

View Source
const (
	MsgTypeChannelForward uint8 = 1
	MsgTypeChannelClose   uint8 = 2
)

Variables

View Source
var (
	ErrMessageDataTooShort = errors.New("message data is too short")
)

Functions

This section is empty.

Types

type TMSG

type TMSG struct {
	Type      uint8
	TunnelID  uint32
	ChannelID uint32
	Payload   []byte
}

func LoadTMSG

func LoadTMSG(data []byte) (*TMSG, error)

func (*TMSG) Bytes

func (m *TMSG) Bytes() []byte

func (*TMSG) Len

func (m *TMSG) Len() int

func (*TMSG) PayloadLen

func (m *TMSG) PayloadLen() int

func (*TMSG) String

func (m *TMSG) String() string

Jump to

Keyboard shortcuts

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