OnixS Eurex ETI Handler C++ library 9.26.0
Users' manual and API documentation
Loading...
Searching...
No Matches
Handler.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
13 * part of this source code or associated reference material to any other location for further
14 * reproduction or redistribution, and any amendments to this copyright notice, are expressly
15 * prohibited.
16 *
17 * Any reproduction or redistribution for sale or hiring of the Software not in accordance with
18 * the terms of the Agreement is a violation of copyright law.
19 */
20
21#pragma once
22
29#include "OnixS/Eurex/Trading/Export.h"
42
43#include <string>
44
45namespace OnixS { namespace Eurex { namespace Trading {
46
48class ONIXS_EUREX_ETI_EXPORT Handler
49{
50public:
55 Handler(const HandlerSettings& settings);
56
58 virtual ~Handler();
59
81 void connect(const char* hostName, UInt16 port, const Logon& logon, const char* localNetworkInterface = "");
82
109 const char* primaryHostName,
110 UInt16 primaryPort,
111 const char* secondaryHostName,
112 UInt16 secondaryPort,
113 const Logon& logon,
114 const char* localNetworkInterface = ""
115 );
116
123
128
136
146 size_t tryThrottle();
147
153
159
165
171
177
183
189
195
201
207
213
219
225
231
237
240
242 void log(LogLevel::Enum logLevel, const char* logMessage, size_t length);
243
245 void log(LogLevel::Enum logLevel, const char* logMessage);
246
248 void log(LogLevel::Enum logLevel, const std::string& str);
249
253 const std::string& licenseExpirationDate() const;
254
259 static std::string encryptPassword(const std::string& password, const std::string& pubKeyPath);
260
262 static const std::string& version();
263
264private:
265 Handler(const Handler&); // no implementation
266 Handler& operator=(const Handler&); // no implementation
267
268private:
269 struct Impl;
270 Impl* impl_;
271};
272}}} // namespace OnixS::Eurex::Trading
Provides events representing changes in the Handler's connection state.
void registerWarningListener(WarningListener *listener)
static const std::string & version()
Returns Handler's version.
void registerHandlerStateListener(HandlerStateListener *listener)
void registerErrorListener(ErrorListener *listener)
void registerAdminListener(AdminListener *listener)
void connect(const char *hostName, UInt16 port, const Logon &logon, const char *localNetworkInterface="")
void registerSRQSListener(SRQSListener *listener)
void registerBasketListener(BasketListener *listener)
void registerQuoteAndCrossRequestListener(QuoteAndCrossRequestListener *listener)
void log(LogLevel::Enum logLevel, const std::string &str)
Logs the given user-level message to the handler log.
static std::string encryptPassword(const std::string &password, const std::string &pubKeyPath)
void registerSessionListener(SessionListener *listener)
void connect(const char *primaryHostName, UInt16 primaryPort, const char *secondaryHostName, UInt16 secondaryPort, const Logon &logon, const char *localNetworkInterface="")
void log(LogLevel::Enum logLevel, const char *logMessage, size_t length)
Logs the given user-level message to the handler log.
Handler(const HandlerSettings &settings)
void registerStrategyCreationListener(StrategyCreationListener *listener)
const std::string & licenseExpirationDate() const
void registerOrderHandlingListener(OrderHandlingListener *listener)
void registerConnectionStateListener(ConnectionStateListener *listener)
HandlerState::Enum state() const
Returns handler state.
virtual ~Handler()
Finalizes the Handler.
void registerTESListener(TESListener *listener)
void registerInfoListener(InfoListener *listener)
void registerCLIPListener(CLIPListener *listener)
void log(LogLevel::Enum logLevel, const char *logMessage)
Logs the given user-level message to the handler log.
void registerQuoteHandlingListener(QuoteHandlingListener *listener)
Initial logon message parameters.
Definition Logon.h:31
Message base class.
Definition Message.h:33
unsigned int UInt32
Definition Defines.h:45
unsigned short UInt16
Definition Defines.h:44
Enum
Defines the state that the handler is in.