CatapultServer  v0.5.0.1 (Elephant)
PeerConnectCode.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include <iosfwd>
23 
24 namespace catapult { namespace net {
25 
26 #define PEER_CONNECT_CODE_LIST \
27  /* Underlying socket operation failed. */ \
28  ENUM_VALUE(Socket_Error) \
29  \
30  /* Peer failed verification. */ \
31  ENUM_VALUE(Verify_Error) \
32  \
33  /* Verification timed out. */ \
34  ENUM_VALUE(Timed_Out) \
35  \
36  /* Peer was accepted. */ \
37  ENUM_VALUE(Accepted) \
38  \
39  /* Peer is already connected. */ \
40  ENUM_VALUE(Already_Connected)
41 
42 #define ENUM_VALUE(LABEL) LABEL,
43  enum class PeerConnectCode {
46  };
47 #undef ENUM_VALUE
48 
50  std::ostream& operator<<(std::ostream& out, PeerConnectCode value);
51 }}
catapult::net::PeerConnectCode::PEER_CONNECT_CODE_LIST
catapult::net::PeerConnectCode
PeerConnectCode
Enumeration of possible peer connection codes.
Definition: PeerConnectCode.h:44
catapult::net::operator<<
std::ostream & operator<<(std::ostream &out, NodeRequestResult value)
Insertion operator for outputting value to out.
catapult
Definition: AddressExtractionExtension.cpp:28