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:
bitfold-protocol: command codec, congestion control, bandwidth management, channelsbitfold-peer: command queue for session batchingbitfold-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.
- 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.