Skip to main content

Crate malnet_core

Crate malnet_core 

Source
Expand description

Core foundational types and utilities.

This module provides the minimal set of core utilities shared across all layers:

  • Configuration types
  • Error handling
  • Protocol constants
  • Memory utilities (packet pooling)
  • Network utilities (DNS resolution, IP parsing/formatting)

Protocol-specific logic is in other modules:

  • malnet-protocol: command codec, congestion control, bandwidth management, channels
  • malnet-peer: command queue for session batching
  • malnet-host: connection management, throughput monitoring

Modulesยง

config
Configuration options for the protocol and runtime.
constants
Protocol constants shared across layers.
either
Either/Or type for type-level choices.
error
Error types and results. Error types shared across the stack.
interceptor
Packet interception for custom processing. Packet interception for custom processing.
packet_pool
Packet pooling for memory efficiency.
session
Sessions are an extra utility used for establishing fully encrypted packet transfers compatible with UDP
shared
Shared, reference-counted byte slices with zero-copy slicing.
transport
Transport abstraction for pluggable I/O. Transport abstraction for pluggable I/O.
utilities
Utility functions for DNS resolution and IP operations. Utility functions for Bitfold networking.