CatapultServer  v0.5.0.1 (Elephant)
PeersConfiguration.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include "catapult/ionet/Node.h"
23 #include <vector>
24 
25 namespace catapult { namespace config {
26 
28  std::vector<ionet::Node> LoadPeersFromStream(std::istream& input, model::NetworkIdentifier networkIdentifier);
29 
31  std::vector<ionet::Node> LoadPeersFromPath(const std::string& path, model::NetworkIdentifier networkIdentifier);
32 }}
exceptions.h
PeersConfiguration.h
catapult::ionet::NodeRoles
NodeRoles
A node's role.
Definition: NodeRoles.h:28
Node.h
catapult::crypto::ParseKey
Key ParseKey(const std::string &keyString)
Parses a key from a string (keyString) and returns the result.
Definition: KeyUtils.cpp:35
KeyUtils.h
catapult::model::NetworkIdentifier
NetworkIdentifier
Possible network identifiers.
Definition: NetworkInfo.h:45
CATAPULT_THROW_RUNTIME_ERROR
#define CATAPULT_THROW_RUNTIME_ERROR(MESSAGE)
Macro used to throw a catapult runtime error.
Definition: exceptions.h:167
catapult::config::LoadPeersFromPath
std::vector< ionet::Node > LoadPeersFromPath(const std::string &path, model::NetworkIdentifier networkIdentifier)
Loads peers from the specified path for the network identified by networkIdentifier.
Definition: PeersConfiguration.cpp:106
types.h
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::ionet::TryParseValue
bool TryParseValue(const std::string &str, ConnectionSecurityMode &modes)
Tries to parse str into connection security modes.
Definition: IoEnums.cpp:72
catapult::config::LoadPeersFromStream
std::vector< ionet::Node > LoadPeersFromStream(std::istream &input, model::NetworkIdentifier networkIdentifier)
Loads peers from the specified stream (input) for the network identified by networkIdentifier.
Definition: PeersConfiguration.cpp:100