frag

package
v0.0.0-...-c607702 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: AGPL-3.0 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