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

Core partition for network_system module. More...

#include <atomic>
#include <chrono>
#include <concepts>
#include <functional>
#include <future>
#include <memory>
#include <mutex>
#include <optional>
#include <shared_mutex>
#include <span>
#include <string>
#include <string_view>
#include <thread>
#include <type_traits>
#include <vector>
#include <asio.hpp>
import kcenon.thread;
import kcenon.common;
Include dependency graph for core.cppm:

Go to the source code of this file.

Classes

class  kcenon::network::integration::thread_pool_interface
 Interface for thread pool integration. More...
 
class  kcenon::network::integration::logger_interface
 Interface for logger integration. More...
 
class  kcenon::network::integration::monitoring_interface
 Interface for monitoring integration. More...
 
class  kcenon::network::integration::io_context_thread_manager
 Manages io_context execution on shared thread pools. More...
 
class  kcenon::network::core::network_context
 Global context for shared network system resources. More...
 
class  kcenon::network::core::connection_pool
 Manages a pool of reusable client connections to reduce connection overhead and improve performance. More...
 

Namespaces

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

Typedefs

using kcenon::network::core::connection_callback = std::function<void()>
 Callback type aliases for messaging.
 
using kcenon::network::core::disconnection_callback = std::function<void()>
 
using kcenon::network::core::error_callback = std::function<void(const std::string&)>
 
using kcenon::network::core::data_callback = std::function<void(std::span<const uint8_t>)>
 

Enumerations

enum class  kcenon::network::core::connection_state { kcenon::network::core::disconnected , kcenon::network::core::connecting , kcenon::network::core::connected , kcenon::network::core::disconnecting }
 Connection state enumeration. More...
 

Functions

constexpr std::string_view kcenon::network::core::to_string (connection_state state) noexcept
 Convert connection state to string.
 

Detailed Description

Core partition for network_system module.

This partition provides core network infrastructure including network context, connection management, and base classes.

Contents:

  • network_context: Global context for shared resources
  • connection_pool: Connection pooling for efficient reuse
  • messaging_client_base: Base class for all messaging clients
  • messaging_server_base: Base class for all messaging servers
  • io_context_thread_manager: ASIO io_context management
See also
kcenon.network for the primary module interface

Definition in file core.cppm.