Documentation
¶
Index ¶
Constants ¶
View Source
const ( FirstHeaderCode byte = 0xFE SecondHeaderCode byte = 0xEF TailCode byte = 0xAF SuccessCode byte = 0xEE ErrorCode byte = 0xFF )
View Source
const MaxMessageLength = 128
View Source
const MetaHeaderPadding = 3
View Source
const MinMessageLength = 6
header (2) + length + feature + action + tail
Variables ¶
View Source
var ErrWrongHeader = errors.New("unexpected header codes")
View Source
var ErrWrongLength = errors.New("message length is not correct")
View Source
var ErrWrongTail = errors.New("unexpected tail code")
Functions ¶
This section is empty.
Types ¶
type Message ¶
func ParseMessage ¶
Click to show internal directories.
Click to hide internal directories.