CatapultServer  v0.5.0.1 (Elephant)
catapult::net::PeerConnectResult Struct Reference

Peer connection result. More...

Collaboration diagram for catapult::net::PeerConnectResult:

Public Member Functions

 PeerConnectResult ()
 Creates a default result. More...
 
 PeerConnectResult (PeerConnectCode code)
 Creates a result around code. More...
 
 PeerConnectResult (PeerConnectCode code, const Key &identityKey)
 Creates a result around code and identityKey. More...
 

Public Attributes

PeerConnectCode Code
 Connection result code. More...
 
Key IdentityKey
 

Detailed Description

Peer connection result.

Constructor & Destructor Documentation

◆ PeerConnectResult() [1/3]

catapult::net::PeerConnectResult::PeerConnectResult ( )
inline

Creates a default result.

◆ PeerConnectResult() [2/3]

catapult::net::PeerConnectResult::PeerConnectResult ( PeerConnectCode  code)
inline

Creates a result around code.

◆ PeerConnectResult() [3/3]

catapult::net::PeerConnectResult::PeerConnectResult ( PeerConnectCode  code,
const Key identityKey 
)
inline

Creates a result around code and identityKey.

Member Data Documentation

◆ Code

PeerConnectCode catapult::net::PeerConnectResult::Code

Connection result code.

◆ IdentityKey

Key catapult::net::PeerConnectResult::IdentityKey

Connection identity.

Note
This is only valid if Code is PeerConnectCode::Accepted.

The documentation for this struct was generated from the following file: