Network System 0.1.1
High-performance modular networking library for scalable client-server applications
Loading...
Searching...
No Matches
network.cppm File Reference

Primary C++20 module for network_system. More...

import kcenon.network:ssl;
import kcenon.thread;
import kcenon.common;
Include dependency graph for network.cppm:

Go to the source code of this file.

Classes

struct  kcenon::network::module_version
 Version information for network_system module. More...
 

Namespaces

namespace  kcenon
 
namespace  kcenon::network
 Main namespace for all Network System components.
 

Functions

VoidResult kcenon::network::initialize ()
 Initialize the network system with default production configuration.
 
VoidResult kcenon::network::shutdown ()
 Shutdown the network system.
 
bool kcenon::network::is_initialized ()
 Check if network system is initialized.
 
constexpr const char * kcenon::network::version () noexcept
 Get the network system version string.
 

Detailed Description

Primary C++20 module for network_system.

This is the main module interface for the network_system library. It aggregates all module partitions to provide a single import point.

Usage:

using namespace kcenon::network::core;
// TCP Client example
auto client = std::make_unique<messaging_client>("my_client");
client->set_connection_callback([]() {
std::cout << "Connected!" << std::endl;
});
client->start_client("localhost", 8080);
// UDP Server example
auto server = std::make_unique<messaging_udp_server>("udp_server");
server->start_server(9090);
// Secure TCP example
config.certificate_path = "/path/to/cert.pem";
auto secure = std::make_unique<secure_messaging_server>("secure_server", config);
secure->start_server(443);
tracing_config config
Definition exporters.cpp:29
SSL/TLS configuration structure.
Definition ssl.cppm:79
std::filesystem::path certificate_path
Path to certificate file (PEM format)
Definition ssl.cppm:81

Module Structure:

Dependencies:

  • kcenon.common (Tier 0) - Result<T>, error handling, interfaces
  • kcenon.thread (Tier 1) - Thread pool integration

Definition in file network.cppm.