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

Go to the source code of this file.

Namespaces

 catapult
 
 catapult::net
 

Macros

#define PEER_CONNECT_CODE_LIST
 
#define ENUM_VALUE(LABEL)   LABEL,
 

Enumerations

enum  catapult::net::PeerConnectCode { catapult::net::PeerConnectCode::PEER_CONNECT_CODE_LIST }
 Enumeration of possible peer connection codes. More...
 

Functions

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

Macro Definition Documentation

◆ ENUM_VALUE

#define ENUM_VALUE (   LABEL)    LABEL,

◆ PEER_CONNECT_CODE_LIST

#define PEER_CONNECT_CODE_LIST
Value:
/* Underlying socket operation failed. */ \
ENUM_VALUE(Socket_Error) \
\
/* Peer failed verification. */ \
ENUM_VALUE(Verify_Error) \
\
/* Verification timed out. */ \
ENUM_VALUE(Timed_Out) \
\
/* Peer was accepted. */ \
ENUM_VALUE(Accepted) \
\
/* Peer is already connected. */ \
ENUM_VALUE(Already_Connected)