OnixS C++ B3 BOE Binary Order Entry 1.3.0
API Documentation
Loading...
Searching...
No Matches
SessionConnectionSettings.h
Go to the documentation of this file.
1/*
2* Copyright Onix Solutions Limited [OnixS]. All rights reserved.
3*
4* This software owned by Onix Solutions Limited [OnixS] and is protected by copyright law
5* and international copyright treaties.
6*
7* Access to and use of the software is governed by the terms of the applicable OnixS Software
8* Services Agreement (the Agreement) and Customer end user license agreements granting
9* a non-assignable, non-transferable and non-exclusive license to use the software
10* for it's own data processing purposes under the terms defined in the Agreement.
11*
12* Except as otherwise granted within the terms of the Agreement, copying or reproduction of any part
13* of this source code or associated reference material to any other location for further reproduction
14* or redistribution, and any amendments to this copyright notice, are expressly prohibited.
15*
16* Any reproduction or redistribution for sale or hiring of the Software not in accordance with
17* the terms of the Agreement is a violation of copyright law.
18*/
19
20#pragma once
21
22#include <OnixS/B3/BOE/ABI.h>
23
24#include <string>
25#include <vector>
26
27namespace OnixS {
28namespace B3 {
29namespace BOE {
30namespace Scheduling {
31
33typedef std::string Host;
34
36typedef unsigned short Port;
37
41{
42public:
45
48
51
53
56
59
60 Counterparty& operator=(const Counterparty& other);
61
62private:
63 Host* host_;
64 Port port_;
65};
66
68typedef std::vector<Counterparty> Counterparties;
69
98
99
101{
102 return *counterparties_;
103}
104
105}
106}
107}
108}
#define ONIXS_B3_BOE_EXPORTED
Definition Compiler.h:181
#define ONIXS_B3_BOE_NOTHROW
Definition Compiler.h:182
Parameters required to establish the connection with the counterparty.
Counterparty()
Initializes a blank instance.
const Host & host() const noexcept
Counterparty(const Host &host, Port port)
Fully identified counterparty.
Counterparty(const Counterparty &other)
Initializes as clone of the given instance.
SessionConnectionSettings(const Host &host, Port port)
Constructor.
SessionConnectionSettings(const SessionConnectionSettings &other)
SessionConnectionSettings & addCounterparty(const Host &host, Port port)
Adds the counterparty.
std::string Host
Counterparty host name.
unsigned short Port
Counterparty port.
std::vector< Counterparty > Counterparties
Ordered series of counterparties.