CatapultServer  v0.5.0.1 (Elephant)
ConnectResult.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include <iosfwd>
23 
24 namespace catapult { namespace ionet {
25 
26 #define CONNECT_RESULT_LIST \
27  /* Client address could not be resolved. */ \
28  ENUM_VALUE(Resolve_Error) \
29  \
30  /* Connection could not be established. */ \
31  ENUM_VALUE(Connect_Error) \
32  \
33  /* Connection attempt was cancelled. */ \
34  ENUM_VALUE(Connect_Cancelled) \
35  \
36  /* Connection was successfully established. */ \
37  ENUM_VALUE(Connected)
38 
39 #define ENUM_VALUE(LABEL) LABEL,
40  enum class ConnectResult {
43  };
44 #undef ENUM_VALUE
45 
47  std::ostream& operator<<(std::ostream& out, ConnectResult value);
48 }}
catapult::ionet::ConnectResult::CONNECT_RESULT_LIST
catapult::ionet::ConnectResult
ConnectResult
Enumeration of possible connection results.
Definition: ConnectResult.h:41
catapult::ionet::operator<<
std::ostream & operator<<(std::ostream &out, ConnectionSecurityMode value)
Insertion operator for outputting value to out.
catapult
Definition: AddressExtractionExtension.cpp:28