40 : host_(std::move(host))
42 , ipSessionToken_(std::move(ipSessionToken))
47 const std::string&
host() const noexcept {
return host_; }
50 unsigned short port() const noexcept {
return port_; }
53 const std::string&
ipSessionToken() const noexcept {
return ipSessionToken_; }
57 unsigned short port_{};
58 std::string ipSessionToken_;
75 addCounterparty(std::move(host), port, std::move(ipSessionToken));
85 counterparties_.emplace_back(std::move(host), port, std::move(ipSessionToken));
#define ONIXS_ICEBOE_NAMESPACE_BEGIN
#define ONIXS_ICEBOE_NAMESPACE_END
#define ONIXS_ICEBOE_EXPORTED
Counterparty(std::string host, unsigned short port, std::string ipSessionToken={})
Fully identified counterparty.
const std::string & ipSessionToken() const noexcept
Counterparty()=default
Initializes a blank instance.
const std::string & host() const noexcept
unsigned short port() const noexcept
const Counterparties & counterparties() const noexcept
SessionConnectionSettings(std::string host, unsigned short port, std::string ipSessionToken={})
Constructor.
SessionConnectionSettings & addCounterparty(std::string host, unsigned short port, std::string ipSessionToken={})
Adds the counterparty.
std::vector< Counterparty > Counterparties
Ordered series of counterparties.