CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
31 namespace thread {
class IoThreadPool; }
34 namespace catapult {
namespace tools {
43 const Key& serverPublicKey,
44 const std::shared_ptr<thread::IoThreadPool>& pPool);
50 const std::shared_ptr<thread::IoThreadPool>& pPool);
71 std::shared_ptr<thread::IoThreadPool>
m_pPool;
#define CATAPULT_LOG(SEV)
Writes a log entry to the default logger with SEV severity.
Definition: Logging.h:340
Settings used to configure connections.
Definition: ConnectionSettings.h:31
PeerConnectCode
Enumeration of possible peer connection codes.
Definition: PeerConnectCode.h:44
const Key & identityKey() const
Gets the unique identifier (a public key).
Definition: Node.cpp:60
std::shared_ptr< thread::IoThreadPool > m_pPool
Definition: AsyncTcpServer.cpp:199
Represents a thread pool that shares a single io context across multiple threads.
Definition: IoThreadPool.h:30
std::shared_ptr< ServerConnector > CreateServerConnector(const std::shared_ptr< thread::IoThreadPool > &pPool, const crypto::KeyPair &keyPair, const ConnectionSettings &settings)
Creates a server connector for a server with a key pair of keyPair using pPool and configured with se...
Definition: ServerConnector.cpp:119
Represents a pair of private key with associated public key.
Definition: KeyPair.h:33
std::unique_ptr< LocalNode > CreateLocalNode(const crypto::KeyPair &keyPair, std::unique_ptr< extensions::ProcessBootstrapper > &&pBootstrapper)
Creates and boots a local node around the specified key pair (keyPair) and bootstrapper (pBootstrappe...
Definition: LocalNode.cpp:255
utils::ContainerHexFormatter< Key::const_iterator > FormatKey(const Key &key)
Formats a public key for printing.
Definition: KeyUtils.cpp:27
Provides a way to access the result of an asynchronous operation.
Definition: Future.h:29
catapult_error< std::runtime_error > catapult_runtime_error
Definition: exceptions.h:87
std::shared_ptr< ionet::PacketIo > pBufferedIo
Definition: PacketReaders.cpp:37
std::shared_ptr< PacketIo > CreateBufferedPacketIo(const std::shared_ptr< PacketIo > &pIo, boost::asio::io_context::strand &strand)
Adds buffering to pIo using strand for synchronization.
Definition: BufferedPacketIo.cpp:178
SocketPointer pSocket
Definition: PacketWriters.cpp:46
ionet::Node Node
Definition: PacketWriters.cpp:45
Definition: AddressExtractionExtension.cpp:28
Base class for wrappers of byte array types, to provide some type-safety.
Definition: ByteArray.h:29
A node in the catapult network.
Definition: Node.h:82
utils::ByteArray< Key_Size, Key_tag > Key
Definition: src/catapult/types.h:41