OpenCBDC Transaction Processor
|
Data Structures | |
class | connection_manager |
Manages a group of peer s. More... | |
struct | message_t |
Received message type. More... | |
class | peer |
Maintains a TCP socket. More... | |
class | socket |
Generic superclass for network sockets. More... | |
class | socket_selector |
Waits on a group of blocking sockets to be ready for read operations. More... | |
class | tcp_listener |
Listens for incoming TCP connections on a given endpoint. More... | |
class | tcp_socket |
Wrapper for a TCP socket. More... | |
Typedefs | |
using | peer_id_t = size_t |
Peer IDs within a connection_manager. | |
using | packet_handler_t = std::function<std::optional<buffer>(message_t&&)> |
Function type for packet handler callbacks. | |
using | ip_address = std::string |
An IP addresses. | |
using | port_number_t = unsigned short |
Port number. | |
using | endpoint_t = std::pair<ip_address, port_number_t> |
[host name, port number]. | |
using cbdc::network::endpoint_t = std::pair<ip_address, port_number_t> |
[host name, port number].
Definition at line 19 of file socket.hpp.
using cbdc::network::ip_address = std::string |
An IP addresses.
Definition at line 15 of file socket.hpp.
using cbdc::network::packet_handler_t = std::function<std::optional<buffer>(message_t&&)> |
Function type for packet handler callbacks.
Receives a packet to handle. Optionally returns a packet to forward to the peer that sent the original packet, or std::nullopt to send nothing back to the peer.
Definition at line 45 of file connection_manager.hpp.
using cbdc::network::peer_id_t = size_t |
Peer IDs within a connection_manager.
Definition at line 27 of file connection_manager.hpp.
using cbdc::network::port_number_t = unsigned short |
Port number.
Definition at line 17 of file socket.hpp.