CatapultServer  v0.5.0.1 (Elephant)
PeerConnectResult.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include "PeerConnectCode.h"
23 #include "catapult/types.h"
24 
25 namespace catapult { namespace net {
26 
29  public:
32  {}
33 
36  {}
37 
39  PeerConnectResult(PeerConnectCode code, const Key& identityKey)
40  : Code(code)
41  , IdentityKey(PeerConnectCode::Accepted == code ? identityKey : Key())
42  {}
43 
44  public:
47 
51  };
52 }}
catapult::net::PeerConnectCode
PeerConnectCode
Enumeration of possible peer connection codes.
Definition: PeerConnectCode.h:44
catapult::net::PeerConnectResult::Code
PeerConnectCode Code
Connection result code.
Definition: PeerConnectResult.h:46
catapult::net::PeerConnectResult::PeerConnectResult
PeerConnectResult(PeerConnectCode code)
Creates a result around code.
Definition: PeerConnectResult.h:35
PeerConnectCode.h
catapult::net::PeerConnectResult::PeerConnectResult
PeerConnectResult(PeerConnectCode code, const Key &identityKey)
Creates a result around code and identityKey.
Definition: PeerConnectResult.h:39
catapult::net::PeerConnectResult::PeerConnectResult
PeerConnectResult()
Creates a default result.
Definition: PeerConnectResult.h:31
catapult::net::PeerConnectResult
Peer connection result.
Definition: PeerConnectResult.h:28
types.h
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::utils::ByteArray< Key_Size, Key_tag >
catapult::net::PeerConnectResult::IdentityKey
Key IdentityKey
Definition: PeerConnectResult.h:50