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
28
struct
PeerConnectResult
{
29
public
:
31
PeerConnectResult
() :
PeerConnectResult
(static_cast<
PeerConnectCode
>(-1))
32
{}
33
35
PeerConnectResult
(
PeerConnectCode
code) :
PeerConnectResult
(code,
Key
())
36
{}
37
39
PeerConnectResult
(
PeerConnectCode
code,
const
Key
& identityKey)
40
:
Code
(code)
41
,
IdentityKey
(
PeerConnectCode
::Accepted == code ? identityKey :
Key
())
42
{}
43
44
public
:
46
PeerConnectCode
Code
;
47
50
Key
IdentityKey
;
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
catapult-server
src
catapult
net
PeerConnectResult.h
Generated by
1.8.16