CatapultServer
v0.5.0.1 (Elephant)
|
virtual void read(const ReadCallback &callback)=0
consumer< SocketOperationCode > WriteCallback
Definition: PacketIo.h:34
An interface for reading and writing packets.
Definition: PacketIo.h:31
consumer< SocketOperationCode, const Packet * > ReadCallback
Definition: PacketIo.h:33
virtual void write(const PacketPayload &payload, const WriteCallback &callback)=0
Writes payload and calls callback on completion.
A packet payload that can be written.
Definition: PacketPayload.h:29
Definition: AddressExtractionExtension.cpp:28
virtual ~PacketIo()=default
std::function< void(TArgs...)> consumer
A consumer function.
Definition: functions.h:35