Documentation
¶
Overview ¶
Provides encoding and decoding for raw data packets.
Index ¶
- type Packet
- func (p *Packet) Answers(other packet.Packet) bool
- func (p *Packet) Equals(other packet.Packet) bool
- func (p *Packet) GetLength() uint16
- func (p *Packet) GetType() packet.Type
- func (p *Packet) GuessPayloadType() packet.Type
- func (p *Packet) InitChecksum(csum uint32)
- func (p *Packet) Pack(buf *packet.Buffer) error
- func (p *Packet) Payload() packet.Packet
- func (p *Packet) SetPayload(pl packet.Packet) error
- func (p *Packet) String() string
- func (p *Packet) Unpack(buf *packet.Buffer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Packet ¶
type Packet struct {
Data []byte `string:"skip"`
}
func (*Packet) GuessPayloadType ¶
func (*Packet) InitChecksum ¶
Click to show internal directories.
Click to hide internal directories.