B2BITS FIX Antenna C++  2.27.0
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Spectra::SpectraApplicationParams Struct Reference

Startup parameters. More...

#include <B2BITS_SpectraApplication.h>

+ Collaboration diagram for Spectra::SpectraApplicationParams:

Public Types

typedef std::vector< SpectraConnectionActiveConnections
 
typedef std::map< SpectraDataChannel, std::list< SpectraDataChannel > > CustomSecDefFeeds
 
enum  Transport { Sockets, SocketsIGMPv4, MyricomDBL }
 Type of transport layer. More...
 

Public Member Functions

 SpectraApplicationParams ()
 

Static Public Member Functions

static const char * transportToString (Transport t)
 

Public Attributes

ActiveConnections activeConnections_
 List of channel connection to use; empty means all connections are allowed. More...
 
std::string appProtocolName_
 Custom dictionary name for FIX application layer. More...
 
bool bindToInterface_
 
bool checkUDPSender_
 Pass true to check the UDP packet sender's IP address. More...
 
std::string configXml_
 Path to the configuration file. More...
 
CustomSecDefFeeds customSecDefFeeds_
 Custom extra feeds for SecurityDefinitions getting. More...
 
size_t incomingUdpBufferSize_
 UDP incoming buffer size. More...
 
std::string incrementalProcessorInterfaceIP_
 IP of network interface to listen on for separate "X" processing; nullptr or empty std::string means all interfaces. More...
 
Transport incrementalProcessorTransportType_
 Transport layer for data reading by separated "X" threads Default value is Transport::SocketsIGMPv4. More...
 
size_t incrementalProcessorWorkerCount_
 Number of separate threads to decode incoming "X" messages. More...
 
size_t incrementQueueSize_
 Maximum number of messages could be stored in recovery mode for the particular instrument. More...
 
std::string listenInterfaceIP_
 IP of network interface to listen on; nullptr or empty std::string means all interfaces. More...
 
bool logIncomingMessages_
 Pass true to write out to the log file incoming FIX messages Default value is false. More...
 
bool logIncomingUdpMessages_
 Pass true to write out to the binary log file incoming FAST messages Default value is false. More...
 
std::string nicConfig_
 The name of the xml file with NIC configuration. More...
 
size_t numberOfWorkers_
 Number of threads to decode incoming data Default value is 4. More...
 
std::string scpProtocolName_
 Custom dictionary name for FIXT transport layer. More...
 
TCPReplayParams tcpReplayParams_
 Params for TCPReplay recovery mode. More...
 
std::string templatesFn_
 Path to the templates file. More...
 
Transport transportType_
 Transport layer for data reading Default value is Transport::SocketsIGMPv4. More...
 

Detailed Description

Startup parameters.

Member Typedef Documentation

◆ ActiveConnections

◆ CustomSecDefFeeds

Member Enumeration Documentation

◆ Transport

Type of transport layer.

Enumerator
Sockets 

standard IP sockets

SocketsIGMPv4 

standard IP sockets with support IGMP v.4

MyricomDBL 

Myricom datagram kernel bypass Layer.

Constructor & Destructor Documentation

◆ SpectraApplicationParams()

Spectra::SpectraApplicationParams::SpectraApplicationParams ( )
inline

Member Function Documentation

◆ transportToString()

static const char* Spectra::SpectraApplicationParams::transportToString ( Transport  t)
inlinestatic

References MyricomDBL, Sockets, and SocketsIGMPv4.

Member Data Documentation

◆ activeConnections_

ActiveConnections Spectra::SpectraApplicationParams::activeConnections_

List of channel connection to use; empty means all connections are allowed.

Default value is empty (all connections from configXml are used)

◆ appProtocolName_

std::string Spectra::SpectraApplicationParams::appProtocolName_

Custom dictionary name for FIX application layer.

◆ bindToInterface_

bool Spectra::SpectraApplicationParams::bindToInterface_

◆ checkUDPSender_

bool Spectra::SpectraApplicationParams::checkUDPSender_

Pass true to check the UDP packet sender's IP address.

Default value is true

◆ configXml_

std::string Spectra::SpectraApplicationParams::configXml_

Path to the configuration file.

◆ customSecDefFeeds_

CustomSecDefFeeds Spectra::SpectraApplicationParams::customSecDefFeeds_

Custom extra feeds for SecurityDefinitions getting.

They are used for resolving by subscription to instruments. For example, params.customSecDefFeeds_[SpectraDataChannel("D", "ORDERS-LOG")].push_back(SpectraDataChannel("F", "FUT-INFO")) As a result FUT-INFO futures defintion feed will be used as the futures defintion feed for ORDERS-LOG

◆ incomingUdpBufferSize_

size_t Spectra::SpectraApplicationParams::incomingUdpBufferSize_

UDP incoming buffer size.

Should be tuned in case of UDP message miss

◆ incrementalProcessorInterfaceIP_

std::string Spectra::SpectraApplicationParams::incrementalProcessorInterfaceIP_

IP of network interface to listen on for separate "X" processing; nullptr or empty std::string means all interfaces.

Default value is null (all interfaces)

◆ incrementalProcessorTransportType_

Transport Spectra::SpectraApplicationParams::incrementalProcessorTransportType_

Transport layer for data reading by separated "X" threads Default value is Transport::SocketsIGMPv4.

◆ incrementalProcessorWorkerCount_

size_t Spectra::SpectraApplicationParams::incrementalProcessorWorkerCount_

Number of separate threads to decode incoming "X" messages.

(0 - disable separate processing of "X" Default value is 0

◆ incrementQueueSize_

size_t Spectra::SpectraApplicationParams::incrementQueueSize_

Maximum number of messages could be stored in recovery mode for the particular instrument.

Default value is 50

◆ listenInterfaceIP_

std::string Spectra::SpectraApplicationParams::listenInterfaceIP_

IP of network interface to listen on; nullptr or empty std::string means all interfaces.

Default value is null (all interfaces)

◆ logIncomingMessages_

bool Spectra::SpectraApplicationParams::logIncomingMessages_

Pass true to write out to the log file incoming FIX messages Default value is false.

◆ logIncomingUdpMessages_

bool Spectra::SpectraApplicationParams::logIncomingUdpMessages_

Pass true to write out to the binary log file incoming FAST messages Default value is false.

◆ nicConfig_

std::string Spectra::SpectraApplicationParams::nicConfig_

The name of the xml file with NIC configuration.

Default value is nic_config.xml

◆ numberOfWorkers_

size_t Spectra::SpectraApplicationParams::numberOfWorkers_

Number of threads to decode incoming data Default value is 4.

◆ scpProtocolName_

std::string Spectra::SpectraApplicationParams::scpProtocolName_

Custom dictionary name for FIXT transport layer.

◆ tcpReplayParams_

TCPReplayParams Spectra::SpectraApplicationParams::tcpReplayParams_

Params for TCPReplay recovery mode.

◆ templatesFn_

std::string Spectra::SpectraApplicationParams::templatesFn_

Path to the templates file.

◆ transportType_

Transport Spectra::SpectraApplicationParams::transportType_

Transport layer for data reading Default value is Transport::SocketsIGMPv4.