Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FragUDPMessage ¶
func FragUDPMessage(m *protocol.UDPMessage, maxSize int) []protocol.UDPMessage
Types ¶
type Defragger ¶
type Defragger struct {
// contains filtered or unexported fields
}
Defragger handles the defragmentation of UDP messages. The current implementation can only handle one packet ID at a time. If another packet arrives before a packet has received all fragments in their entirety, any previous state is discarded.
func (*Defragger) Feed ¶
func (d *Defragger) Feed(m *protocol.UDPMessage) *protocol.UDPMessage
Click to show internal directories.
Click to hide internal directories.