frag

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2025 License: MIT Imports: 1 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL