OpenCBDC Transaction Processor
Loading...
Searching...
No Matches
connection_manager.hpp File Reference
#include "peer.hpp"
#include "socket_selector.hpp"
#include "tcp_listener.hpp"
#include "tcp_socket.hpp"
#include "util/common/config.hpp"
#include <atomic>
#include <cassert>
#include <condition_variable>
#include <mutex>
#include <queue>
#include <random>
#include <shared_mutex>
#include <sys/socket.h>
#include <thread>
Include dependency graph for connection_manager.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  cbdc::network::message_t
 Received message type. More...
 
class  cbdc::network::connection_manager
 Manages a group of peer s. More...
 

Namespaces

namespace  cbdc
 
namespace  cbdc::network
 

Typedefs

using cbdc::network::peer_id_t = size_t
 Peer IDs within a connection_manager.
 
using cbdc::network::packet_handler_t = std::function<std::optional<buffer>(message_t&&)>
 Function type for packet handler callbacks.