6#ifndef KCENON_NETWORK_INTERNAL_INTEGRATION_MESSAGING_BRIDGE_H_
7#define KCENON_NETWORK_INTERNAL_INTEGRATION_MESSAGING_BRIDGE_H_
26#if KCENON_WITH_CONTAINER_SYSTEM
30#if KCENON_WITH_THREAD_SYSTEM
32# pragma clang diagnostic push
33# pragma clang diagnostic ignored "-Wdeprecated-declarations"
36#include <kcenon/thread/core/thread_pool.h>
37# pragma clang diagnostic pop
149 std::shared_ptr<kcenon::network::core::messaging_server>
create_server(
150 const std::string& server_id
158 std::shared_ptr<kcenon::network::core::messaging_client>
create_client(
159 const std::string& client_id
162#if KCENON_WITH_CONTAINER_SYSTEM
168 std::shared_ptr<container_module::value_container> container
175 void set_container_message_handler(
176 std::function<
void(
const container_module::value_container&)> handler
180#if KCENON_WITH_THREAD_SYSTEM
185 void set_thread_pool(
186 std::shared_ptr<kcenon::thread::thread_pool> pool
195 std::shared_ptr<thread_pool_interface> pool
Unified interface for external system integration bridges.
A basic TCP client that connects to a remote host, sends/receives data using asynchronous operations,...
A server class that manages incoming TCP connections, creating messaging_session instances for each a...
Abstract interface for external system integration bridges.
Bridge class for messaging_system compatibility implementing INetworkBridge.
BridgeMetrics get_metrics() const override
Get current metrics.
bool is_initialized() const override
Check if the bridge is initialized.
std::shared_ptr< kcenon::network::core::messaging_client > create_client(const std::string &client_id)
Create a messaging client with messaging_system compatible API.
messaging_bridge()
Default constructor.
std::shared_ptr< kcenon::network::core::messaging_server > create_server(const std::string &server_id)
Create a messaging server with messaging_system compatible API.
void set_thread_pool_interface(std::shared_ptr< thread_pool_interface > pool)
Set thread pool using the integration interface.
void reset_metrics()
Reset performance metrics.
~messaging_bridge() override
Destructor.
VoidResult shutdown() override
Shutdown the bridge.
std::unique_ptr< impl > pimpl_
std::shared_ptr< thread_pool_interface > get_thread_pool_interface() const
Get the thread pool interface.
Manages a single connected client session on the server side, providing asynchronous read/write opera...
Feature flags for network_system.
TCP client implementation.
TCP server implementation.
VoidResult initialize()
Initialize the network system with default production configuration.
Configuration for bridge initialization.
Metrics and health information for a bridge.
Thread system integration interface for network_system.