OnixS Eurex ETI Handler C++ library 9.25.0
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
28#include "OnixS/Eurex/Trading/Export.h"
41
42#include <string>
43
44namespace OnixS { namespace Eurex { namespace Trading {
45
47class ONIXS_EUREX_ETI_EXPORT Handler
48{
49public:
54 Handler(const HandlerSettings& settings);
55
57 virtual ~Handler();
58
80 void connect(const char* hostName, UInt16 port, const Logon& logon, const char* localNetworkInterface = "");
81
108 const char* primaryHostName,
109 UInt16 primaryPort,
110 const char* secondaryHostName,
111 UInt16 secondaryPort,
112 const Logon& logon,
113 const char* localNetworkInterface = ""
114 );
115
122
127
135
145 size_t tryThrottle();
146
152
158
164
170
176
182
188
194
200
206
212
218
224
227
229 void log(LogLevel::Enum logLevel, const char* logMessage, size_t length);
230
232 void log(LogLevel::Enum logLevel, const char* logMessage);
233
235 void log(LogLevel::Enum logLevel, const std::string& str);
236
240 const std::string& licenseExpirationDate() const;
241
246 static std::string encryptPassword(const std::string& password, const std::string& pubKeyPath);
247
249 static const std::string& version();
250
251private:
252 Handler(const Handler&); // no implementation
253 Handler& operator=(const Handler&); // no implementation
254
255private:
256 struct Impl;
257 Impl* impl_;
258};
259}}} // 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 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 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.