citadel_sdk::prefabs::server

Module empty

Source
Expand description

A non-reactive kernel that does no additional processing on top of the protocol Minimal Network Kernel

This module provides a minimal network kernel implementation that performs no additional processing on network events. It’s useful for servers that need to accept connections but don’t require custom event handling.

§Features

  • Zero overhead processing
  • Automatic event acceptance
  • Minimal resource usage
  • No state management
  • Simple implementation

§Example:

use citadel_sdk::prelude::*;
use citadel_sdk::prefabs::server::empty::EmptyKernel;

let kernel = Box::new(EmptyKernel::<StackedRatchet>::default());

§Important Notes

  • No event processing
  • No connection handling
  • No channel interaction
  • Suitable for basic servers
  • Not suitable for interactive servers

Structs§

  • A kernel that does nothing to events in the protocol, nor does it cause any requests. A server that allows any and all connections with no special handlers would benefit from the use of this kernel. This should never be used for interacting with peers/clients from the server, since to do so would deny the possibility of interacting with channels.