limits

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2022 License: GPL-3.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

View Source
const Buffer = 65_536

Buffer is the default size of buffers for stateless connections. This number affects how UDP/IP connections perform and how large their backlog will be before blocking. (Server side only).

View Source
const Frag = 33_554_432

Frag is the max size used to fragment packets into. Any packet over this byte size will be fragmented.

View Source
const Packets = 256

Packets determines how many Packets may be processed by the Session thread before waiting another wait cycle. If this is set to anything less than one, only a single Packet will be processed at a time.

Variables

This section is empty.

Functions

func Ignore added in v0.1.0

func Ignore()

Ignore is a simple helper method that can be used to ignore signals that can be used to abort or generate a stack-trace.

Used for anti-debugging measures.

func MemorySweep added in v0.0.6

func MemorySweep()

MemorySweep enables the GC memory sweeper, which keeps the process memory clean to prevent any crashes while in DLL format or injected. This function only needs to be called once and will return immediately.

Defaults to a time of one minute.

func MemorySweepEx added in v0.0.6

func MemorySweepEx(d time.Duration)

MemorySweepEx enables the GC memory sweeper, which keeps the process memory clean to prevent any crashes while in DLL format or injected. This function only needs to be called once and will return immediately.

Allows for specification of the timespace between sweeps.

func Reset added in v0.2.0

func Reset()

Reset will undo all the signals ignored by the 'Ignore' function.

Types

This section is empty.

Jump to

Keyboard shortcuts

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