CatapultServer  v0.5.0.1 (Elephant)
NodeRequestResult.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include <iosfwd>
23 
24 namespace catapult { namespace net {
25 
26 #define NODE_REQUEST_RESULT_LIST \
27  /* Connection to the remote node failed. */ \
28  ENUM_VALUE(Failure_Connection) \
29  \
30  /* Interaction with the remote node failed. */ \
31  ENUM_VALUE(Failure_Interaction) \
32  \
33  /* Remote response is incompatible with the local node. */ \
34  ENUM_VALUE(Failure_Incompatible) \
35  \
36  /* Interaction with the remote node timed out. */ \
37  ENUM_VALUE(Failure_Timeout) \
38  \
39  /* Ping operation succeeded. */ \
40  ENUM_VALUE(Success)
41 
42 #define ENUM_VALUE(LABEL) LABEL,
43  enum class NodeRequestResult {
46  };
47 #undef ENUM_VALUE
48 
50  std::ostream& operator<<(std::ostream& out, NodeRequestResult value);
51 }}
catapult::net::NodeRequestResult
NodeRequestResult
Enumeration of possible results of a ping operation.
Definition: NodeRequestResult.h:44
catapult::net::operator<<
std::ostream & operator<<(std::ostream &out, NodeRequestResult value)
Insertion operator for outputting value to out.
catapult::net::NodeRequestResult::NODE_REQUEST_RESULT_LIST
catapult
Definition: AddressExtractionExtension.cpp:28