CatapultServer  v0.5.0.1 (Elephant)
SocketOperationCode.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include <iosfwd>
23 
24 namespace catapult { namespace ionet {
25 
26 #define SOCKET_OPERATION_CODE_LIST \
27  /* Socket operation succeeded. */ \
28  ENUM_VALUE(Success) \
29  \
30  /* Socket was closed. */ \
31  ENUM_VALUE(Closed) \
32  \
33  /* Socket produced a read error. */ \
34  ENUM_VALUE(Read_Error) \
35  \
36  /* Socket produced a write error. */ \
37  ENUM_VALUE(Write_Error) \
38  \
39  /* Socket produced malformed data. */ \
40  ENUM_VALUE(Malformed_Data) \
41  \
42  /* Socket produced a security error. */ \
43  ENUM_VALUE(Security_Error) \
44  \
45  /* Socket operation completed due to insufficient data. */ \
46  ENUM_VALUE(Insufficient_Data)
47 
48 #define ENUM_VALUE(LABEL) LABEL,
49  enum class SocketOperationCode {
52  };
53 #undef ENUM_VALUE
54 
56  std::ostream& operator<<(std::ostream& out, SocketOperationCode value);
57 }}
catapult::ionet::SocketOperationCode::SOCKET_OPERATION_CODE_LIST
catapult::ionet::SocketOperationCode
SocketOperationCode
Enumeration of socket operation results.
Definition: SocketOperationCode.h:50
catapult::ionet::operator<<
std::ostream & operator<<(std::ostream &out, ConnectionSecurityMode value)
Insertion operator for outputting value to out.
catapult
Definition: AddressExtractionExtension.cpp:28