OnixS C++ CBOE CFE Binary Order Entry (BOE) Handler 1.12.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 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#pragma once
20
21#include <string>
22
28
29
30namespace OnixS {
31namespace CboeCFE {
32namespace Trading {
33namespace BOE {
34
44
46typedef std::pair<Port, Port> PortRange;
47
50class ONIXS_CBOE_CFE_BOE_API Handler
51{
52public:
57 explicit Handler (const HandlerSettings& settings);
58
59 virtual ~Handler();
60
82 void connect (const LogonSettings& logonSettings,
83 const std::string& hostName,
84 Port port,
85 const std::string& localNetworkInterface = "", const PortRange& localPortRange = PortRange(0,0));
86
90 void disconnect ();
91
95
98
104
110
116
122
128
134
139 UInt32 send(const OutgoingMessage&);
140
146 void warmup(OutgoingMessage&, int warmupFlags = 0);
147
150
153
157
160 void log (LogLevel::Enum logLevel, const char* logMessage, size_t length);
161
164 void log (LogLevel::Enum logLevel, const char* logMessage);
165
168 void log (LogLevel::Enum logLevel, const std::string& str);
169
172 const std::string& licenseExpirationDate () const;
173
176 static const std::string version ();
177
178private:
179 Handler (const Handler&); // no implementation
180 Handler& operator = (const Handler&); // no implementation
181
182private:
183 struct Impl;
184 Impl* impl_;
185};
186}
187}
188}
189}
#define ONIXS_CBOE_CFE_BOE_API_DECL(typeKind, typeName)
Definition ABI.h:31
void registerWarningListener(WarningListener *listener)
void warmup(OutgoingMessage &, int warmupFlags=0)
void registerHandlerStateListener(HandlerStateListener *listener)
SeqNumber nextSendingSeqNum()
Gets the next sequence number for sending messages.
void registerErrorListener(ErrorListener *listener)
void log(LogLevel::Enum logLevel, const std::string &str)
void registerSessionListener(SessionListener *listener)
void connect(const LogonSettings &logonSettings, const std::string &hostName, Port port, const std::string &localNetworkInterface="", const PortRange &localPortRange=PortRange(0, 0))
void log(LogLevel::Enum logLevel, const char *logMessage, size_t length)
Handler(const HandlerSettings &settings)
const std::string & licenseExpirationDate() const
void registerReplayListener(ReplayListener *listener)
void nextSendingSeqNum(SeqNumber value)
Sets the next sequence number for sending messages.
static const std::string version()
HandlerState::Enum state() const
void registerMessageListener(MessageListener *listener)
void log(LogLevel::Enum logLevel, const char *logMessage)
UInt32 send(const OutgoingMessage &)
Incoming (CFE to TPH) message listener.
std::pair< Port, Port > PortRange
Definition Handler.h:46
Base class for outgoing messages.