OnixS C++ FIX Engine 4.13.0
API Documentation
Loading...
Searching...
No Matches
IEngineListener.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 <string>
23
24#include <OnixS/FIXEngine/ABI.h>
26
27namespace OnixS {
28namespace FIX {
31
51
74
77{
78public:
81
100 virtual void onUnknownIncomingConnection(const FlatMessage & incomingLogon, const int listenPort,
101 const int counterpartyPort, const std::string & counterpartyIpAddress,
102 std::string * rejectReason) = 0;
103
117 virtual void onIncomingConnection(ONIXS_FIXENGINE_UNUSED const FlatMessage & incomingLogon, ONIXS_FIXENGINE_UNUSED const int listenPort,
118 ONIXS_FIXENGINE_UNUSED const int counterpartyPort, ONIXS_FIXENGINE_UNUSED const std::string & counterpartyIpAddress,
119 ONIXS_FIXENGINE_UNUSED std::string * rejectReason) {};
120
132 virtual void onIncomingTelecommunicationLink(ONIXS_FIXENGINE_UNUSED const int listenPort, ONIXS_FIXENGINE_UNUSED const int counterpartyPort,
133 ONIXS_FIXENGINE_UNUSED const std::string & counterpartyIpAddress, ONIXS_FIXENGINE_UNUSED std::string * rejectReason) {};
134
140 virtual void onError(EngineErrorReason::Enum reason, const std::string & description) = 0;
141
147 virtual void onWarning(EngineWarningReason::Enum reason, const std::string & description) = 0;
148};
149}
150}
#define ONIXS_FIXENGINE_API_DECL(typeKind, typeName)
Definition ABI.h:57
#define ONIXS_FIXENGINE_API
Definition ABI.h:45
#define ONIXS_FIXENGINE_DEFAULT
Definition Compiler.h:194
Provides an access to FIX fields from a flat (tag=value) message.
The Engine's Listener.
virtual void onIncomingConnection(ONIXS_FIXENGINE_UNUSED const FlatMessage &incomingLogon, ONIXS_FIXENGINE_UNUSED const int listenPort, ONIXS_FIXENGINE_UNUSED const int counterpartyPort, ONIXS_FIXENGINE_UNUSED const std::string &counterpartyIpAddress, ONIXS_FIXENGINE_UNUSED std::string *rejectReason)
Called when an incoming FIX connection is detected.
virtual void onError(EngineErrorReason::Enum reason, const std::string &description)=0
Called when an error is detected.
virtual void onUnknownIncomingConnection(const FlatMessage &incomingLogon, const int listenPort, const int counterpartyPort, const std::string &counterpartyIpAddress, std::string *rejectReason)=0
Called when an unknown incoming FIX connection is detected.
virtual void onWarning(EngineWarningReason::Enum reason, const std::string &description)=0
Called when a warning is detected.
virtual ~IEngineListener() ONIXS_FIXENGINE_DEFAULT
virtual void onIncomingTelecommunicationLink(ONIXS_FIXENGINE_UNUSED const int listenPort, ONIXS_FIXENGINE_UNUSED const int counterpartyPort, ONIXS_FIXENGINE_UNUSED const std::string &counterpartyIpAddress, ONIXS_FIXENGINE_UNUSED std::string *rejectReason)
Called when an incoming TCP connection is detected.
The FIX Session - a bi-directional stream of ordered messages between two parties within a continuous...
Definition Session.h:98
STL namespace.
@ SetSocketOptionError
Socket options cannot be set.
@ RestoreSessionStateError
The session state cannot be restored.
@ BackupError
Cannot backup the file.
@ ErrorWhileReadingSentMessages
An exception was thrown during the reading of the sent message.
@ GeneralError
The general system-related error.
@ InternalError
The internal error, please contact support@onixs.biz to investigate the issue.
@ LicenseExpiration
The license expiration warning.
@ RestoreSessionStateWarning
The session state cannot be changed.
@ GarbledMessageReceived
A garbled message is received.
@ GeneralWarning
The general system-related warning.
@ CannotReceiveFirstMessageDuringTimeout
The first message cannot be received during the timeout.