Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultMagicNumber uint8 = 110
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Packet ¶
type Packet struct { Header header Payload []byte // NUL-padded string }
Packet is the holder of structured message.
func NewRequestPacket ¶
type PacketType ¶
type PacketType uint8
const ( PacketTypeRequest PacketType = iota PacketTypeResponse PacketTypeNotice )
Click to show internal directories.
Click to hide internal directories.