CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
30 namespace crypto {
class KeyPair; }
32 class AcceptedPacketSocketInfo;
36 namespace thread {
class IoThreadPool; }
61 const std::shared_ptr<thread::IoThreadPool>& pPool,
65 uint32_t maxConnectionsPerIdentity);
utils::SpinLock m_lock
Definition: PacketReaders.cpp:149
#define CATAPULT_LOG(SEV)
Writes a log entry to the default logger with SEV severity.
Definition: Logging.h:340
ionet::ServerPacketHandlers m_handlers
Definition: PacketReaders.cpp:230
std::shared_ptr< ClientConnector > CreateClientConnector(const std::shared_ptr< thread::IoThreadPool > &pPool, const crypto::KeyPair &keyPair, const ConnectionSettings &settings)
Creates a client connector for a server with a key pair of keyPair using pPool and configured with se...
Definition: ClientConnector.cpp:104
def debug(*args)
Definition: Parser.py:46
Settings used to configure connections.
Definition: ConnectionSettings.h:31
consumer< const PeerConnectResult & > AcceptCallback
Definition: PacketReaders.h:44
Manages a collection of connections that receive data from external nodes.
Definition: PacketReaders.h:42
virtual void shutdown()=0
Shuts down all connections.
std::weak_ptr< ChainedSocketReader > pReader
Definition: PacketReaders.cpp:38
Represents a pair of private key with associated public key.
Definition: KeyPair.h:33
std::shared_ptr< ClientConnector > m_pClientConnector
Definition: PacketReaders.cpp:231
virtual void accept(const ionet::AcceptedPacketSocketInfo &socketInfo, const AcceptCallback &callback)=0
Accepts a connection represented by socketInfo and calls callback on completion.
def info(*args)
Definition: forwardsValidation.py:12
Key PublicKey
Definition: PacketReaders.cpp:36
ArraySet< Key > KeySet
A key set.
Definition: ArraySet.h:64
std::shared_ptr< ionet::PacketIo > pBufferedIo
Definition: PacketReaders.cpp:37
uint64_t size
Definition: MemoryCounters.cpp:65
std::shared_ptr< PacketReaders > CreatePacketReaders(const std::shared_ptr< thread::IoThreadPool > &pPool, const ionet::ServerPacketHandlers &handlers, const crypto::KeyPair &keyPair, const ConnectionSettings &settings, uint32_t maxConnectionsPerIdentity)
Definition: PacketReaders.cpp:236
consumer< const AcceptedPacketSocketInfo & > AcceptCallback
Callback for an accepted socket.
Definition: PacketSocket.h:106
Manages a collection of connections.
Definition: ConnectionContainer.h:27
std::shared_ptr< ChainedSocketReader > CreateChainedSocketReader(const std::shared_ptr< ionet::PacketSocket > &pPacketSocket, const ionet::ServerPacketHandlers &serverHandlers, const ionet::ReaderIdentity &identity)
Definition: ChainedSocketReader.cpp:79
Readers m_readers
Definition: PacketReaders.cpp:148
SocketPointer pSocket
Definition: PacketWriters.cpp:46
Definition: AddressExtractionExtension.cpp:28
Result of a packet socket accept operation.
Definition: PacketSocket.h:68
virtual size_t numActiveReaders() const =0
Gets the number of active readers.
uint32_t m_maxConnectionsPerIdentity
Definition: PacketReaders.cpp:147
std::function< void(TArgs...)> consumer
A consumer function.
Definition: functions.h:35
A collection of packet handlers where there is at most one handler per packet type.
Definition: PacketHandlers.h:62
utils::ByteArray< Key_Size, Key_tag > Key
Definition: src/catapult/types.h:41
std::lock_guard< SpinLock > SpinLockGuard
A spin lock guard.
Definition: SpinLock.h:60