Documentation ¶
Index ¶
Constants ¶
View Source
const ( ACK = 0x00 NACK = 0xFF )
Acknoledgement
Variables ¶
View Source
var ErrLength = errors.New("message too long")
ErrLength happens when message length is equal or over 256*256
View Source
var Sequence = []byte{0x2A, 0x00, 0x2A, 0x00}
Sequence used to start and end a message
Functions ¶
func CreateMessage ¶
CreateMessage encodes the message
func MessageContent ¶
MessageContent verifies a message and extracts its content
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.