CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
30 struct ReaderIdentity;
48 virtual void start() = 0;
51 virtual void stop() = 0;
57 const std::shared_ptr<ionet::PacketSocket>& pPacketSocket,
64 const std::shared_ptr<ionet::PacketSocket>& pPacketSocket,
#define CATAPULT_LOG(SEV)
Writes a log entry to the default logger with SEV severity.
Definition: Logging.h:340
ChainedSocketReader::CompletionHandler m_completionHandler
Definition: ChainedSocketReader.cpp:74
def warning(*args)
Definition: colorPrint.py:10
virtual ~ChainedSocketReader()=default
virtual void start()=0
Starts reading.
Identifying information about a reader.
Definition: ReaderIdentity.h:28
SocketOperationCode
Enumeration of socket operation results.
Definition: SocketOperationCode.h:50
consumer< ionet::SocketOperationCode > CompletionHandler
Callback that is called when the read chain is broken.
Definition: ChainedSocketReader.h:44
std::unique_ptr< ionet::SocketReader > m_pReader
Definition: ChainedSocketReader.cpp:75
ionet::ReaderIdentity m_identity
Definition: ChainedSocketReader.cpp:73
virtual void stop()=0
Stops reading.
std::shared_ptr< ionet::PacketSocket > m_pPacketSocket
Definition: ChainedSocketReader.cpp:72
std::shared_ptr< ChainedSocketReader > CreateChainedSocketReader(const std::shared_ptr< ionet::PacketSocket > &pPacketSocket, const ionet::ServerPacketHandlers &serverHandlers, const ionet::ReaderIdentity &identity)
Definition: ChainedSocketReader.cpp:79
std::unique_ptr< SocketReader > CreateSocketReader(const std::shared_ptr< BatchPacketReader > &pReader, const std::shared_ptr< PacketIo > &pWriter, const ServerPacketHandlers &handlers, const ReaderIdentity &identity)
Creates a socket packet reader around pReader, pWriter and handlers given a reader identity.
Definition: SocketReader.cpp:179
Definition: AddressExtractionExtension.cpp:28
Definition: ChainedSocketReader.h:38
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