CatapultServer  v0.5.0.1 (Elephant)
PacketExtractor.h File Reference
Include dependency graph for PacketExtractor.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  catapult::ionet::PacketExtractor
 Helper for extracting a packet from a working buffer. More...
 

Namespaces

 catapult
 
 catapult::ionet
 

Macros

#define PACKET_EXTRACT_RESULT_LIST
 
#define ENUM_VALUE(LABEL)   LABEL,
 

Enumerations

enum  catapult::ionet::PacketExtractResult { catapult::ionet::PacketExtractResult::PACKET_EXTRACT_RESULT_LIST }
 Possible results from PacketExtractor::tryExtractNextPacket. More...
 

Functions

std::ostream & catapult::ionet::operator<< (std::ostream &out, PacketExtractResult value)
 Insertion operator for outputting value to out. More...
 

Macro Definition Documentation

◆ ENUM_VALUE

#define ENUM_VALUE (   LABEL)    LABEL,

◆ PACKET_EXTRACT_RESULT_LIST

#define PACKET_EXTRACT_RESULT_LIST
Value:
/* A packet was succesfully extracted. */ \
ENUM_VALUE(Success) \
\
/* A packet was not extracted due to insufficient data. */ \
ENUM_VALUE(Insufficient_Data) \
\
/* A packet was not extracted due to a packet error. */ \
ENUM_VALUE(Packet_Error)