595 const OnixS::System::ISettings & settings()
const;
597 struct Implementation;
598 Implementation * impl;
#define ONIXS_FIXENGINE_API
The immutable secure string.
bool localTimeUsage() const
Gets the usage of the local time in FIX Engine events and log files.
unsigned licenseAlertingDaysBeforeExpiration()
Returns the number of days to alert before the license expiration.
unsigned long long fileBasedStorageSegmentSize() const
Gets the segment size for the file based session storage.
SslProtocolMinMaxVersion::Enum sslMaxProtocolVersion() const
Returns the maximal SSL/TLS protocol version that will be declared during the SSL/TLS handshake.
EngineSettings & resendingBatchSize(size_t value)
Sets the maximum number of messages sent in reply to the Resend Request <2> before temporarily releas...
EngineSettings & sendQueueMaxSize(size_t size)
Sets the send queue maximum size in bytes.
EngineSettings & reasonableTransmissionTime(int value)
The reasonable transmission time as % from the HeartBtInt value.
EngineSettings & validateFieldValues(bool)
Sets the option to validate the field values of FIX messages in accordance with the FIX protocol or i...
int reasonableTransmissionTime() const
The reasonable transmission time as % from HeartBtInt value.
int listenPort() const
The FIX Engine listens on this port for incoming "plain text" connections.
EngineSettings & asyncFileBasedStorageQueueMaxSize(unsigned value)
Sets the log queue maximum size of the asynchronous session storage.
int reconnectInterval() const
Returns the time interval between the attempts to restore the FIX connection (in seconds).
EngineSettings & logOutboundMessages(bool value)
The option to log outbound messages.
EngineSettings & specifyApplVerIdField(bool value)
Sets the option to specify the ApplVerID(1128) tag in all application FIX messages when a FIX protoco...
EngineSettings & sslMinProtocolVersion(SslProtocolMinMaxVersion::Enum version)
Sets the minimal SSL/TLS protocol version that will be declared during the SSL/TLS handshake.
EngineSettings & validateRequiredFields(bool)
Sets the option to validate the presence of required fields in inbound and outbound messages.
EngineSettings & useSpinLock(bool value)
Returns the default mode for using a spin lock.
size_t sendQueueMaxSize() const
Gets the send queue maximum size in bytes.
int reconnectAttempts() const
Returns the number of attempts to restore the FIX connection.
EngineSettings & fileBasedStorageSegmentSize(unsigned long long value)
Sets the segment size for the file based session storage.
EngineSettings & sslCertificateFile(const std::string &value)
Sets the path to the SSL certificate file in the (Privacy Enhanced Mail) Base64 encoded (....
~EngineSettings()
The destructor.
EngineSettings & localNetworkInterface(const LocalNetworkInterface &)
Sets the local interface where the engine listen for incoming connections.
unsigned firstLogonTimeout() const
Gets the first Logon timeout.
bool validateFieldValues() const
Gets the option to validate the field values of FIX messages in accordance with the FIX protocol or i...
EngineSettings & sendSpinningTimeout(int value)
Sets the send spinning timeout (in microseconds) of the Session::send(..) method to wait for the sock...
bool enableRxTimestamp() const
Gets the value of the option to enable received data timestamp.
EngineSettings & createEngineLogFile(bool value)
The option to create the FIX Engine log file.
const ListenPorts & sslListenPorts() const
Returns SSL listen ports.
const std::string & licenseFile() const
Returns the path to the license file.
const std::string & sslCertificateFile() const
Returns the path to the SSL certificate file in the (Privacy Enhanced Mail) Base64 encoded (....
bool reportNewMessagesWhileWaitingForMissedMessages() const
When the message gap is detected the "Resend Request" FIX Message is sent and the Session state is ch...
SslProtocolMinMaxVersion::Enum sslMinProtocolVersion() const
Returns the minimal SSL/TLS protocol version that will be declared during the SSL/TLS handshake.
void loadFromConfigFile(const std::string &configFile)
Loads Engine settings from a Configuration file.
HeartbeatResolution
The heartbeat resolution enum.
@ SecondsHeartbeatResolution
@ DecisecondsHeartbeatResolution
EngineSettings & tcpNoDelayOption(bool value)
Sets the option to improve the latency at the expense of the message throughput (TCP_NODELAY).
int threadPoolSize() const
Returns the thread pool size.
size_t resendingQueueSize() const
Returns the number of sent messages that are available for the resending on the counterparty's Resend...
bool validateRepeatingGroupEntryCount() const
Gets the option to validate the repeating group size of FIX messages in accordance with the FIX proto...
EngineSettings & logDirectory(const std::string &value)
Inbound and outbound messages, session's state data and the FIX Engine log file (FixEngineLog....
int receiveBufferSize() const
Returns the size of the TCP buffer allocated to the FIX connection for receiving data.
bool validateChecksum() const
Gets the option to validate the checksum of incoming messages.
EngineSettings & sslCaFile(const std::string &value)
Sets the path to the trusted certification authority certificate file in the (Privacy Enhanced Mail) ...
EngineSettings & dictionaryFile(const std::string &value)
Specifies the path(s) to the XML file(s) with the description of the FIX Dictionary(s).
EngineSettings & reconnectAttempts(int value)
Sets the number of attempts to restore the FIX connection.
EngineSettings & listenPort(int value)
The FIX Engine listens on this port for incoming "plain text" connections.
EngineSettings & licenseString(const std::string &value)
Specifies the string of the license content.
int sendBufferSize() const
Returns the size of the TCP buffer allocated to the FIX connection for sending data.
EngineSettings & reportNewMessagesWhileWaitingForMissedMessages(bool value)
Sets the option to report new messages while waiting for missed messages.
EngineSettings & reconnectInterval(int value)
Sets the time interval between the attempts to restore the FIX connection (in seconds).
EngineSettings & licenseAlertingDaysBeforeExpiration(unsigned value)
Sets the number of days to alert before the license expiration.
static const int UseDefaultReceiveBufferSize
Specifies the usage of the operating system default RecvBuffer size.
EngineSettings & resendRequestMaximumRange(int value)
Sets the maximum number of messages to be requested in one Resend Request (MsgType=2) message.
Cryptography::SecureString sslPrivateKeyPassword() const
Returns the password to load private keys that are protected by a password.
const std::string & licenseString() const
Returns the string of the license content.
EngineSettings(const std::string &configuration)
The constructor to create the EngineSettings from a Configuration string.
EngineSettings()
The constructor.
EngineSettings & receiveBufferSize(int value)
Sets the size of the TCP buffer allocated to the FIX connection for receiving data.
EngineSettings & sslPrivateKeyPassword(const Cryptography::SecureString &value)
Set the password to load private keys that are protected by a password.
const std::string & sslClientSni() const
Returns the client-side SNI-extension field.
EngineSettings & sslVerifyPeer(bool verify)
Set the option to request client certificates and perform the certificate verification.
bool logInboundMessages() const
Returns 'true' if inbound messages are logged, otherwise - 'false'.
EngineSettings & specifyLastMsgSeqNumProcessed(bool value)
Sets the option to specify the LastMsgSeqNumProcessed (tag=369) field on every message sent....
EngineSettings & dialectString(const std::string &value)
Specifies the plain text string with a description of the FIX dialect.
bool sslVerifyPeer() const
Returns the option to request client certificates and perform the certificate verification.
EngineSettings & validateRepeatingGroupEntryCount(bool)
Sets the option to validate the repeating group size of FIX messages in accordance with the FIX proto...
int expectedIncomingMessageSize() const
Gets the expected incoming FIX message size.
HeartbeatResolution heartbeatResolution() const
Gets the heartbeat resolution.
EngineSettings & receiveSpinningTimeout(int value)
Sets the non-blocking receive spinning timeout (in microseconds) before the receiving thread enters i...
EngineSettings & serviceThreadPolicy(int policy)
Sets the policy of Engine service threads.
bool logOutboundMessages() const
Returns 'true' if outbound messages are logged, otherwise - 'false'.
const std::string & logDirectory() const
Inbound and outbound messages, session's state data and the FIX Engine log file (FixEngineLog....
ThreadingModel::Enum threadingModel() const
Returns the default mode for outbound and incoming connections.
EngineSettings & logInboundMessages(bool value)
The option to log inbound messages.
Session::ScrambledFields scrambleLogonFields() const
Gets scrambled fields in the Logon(A) message.
const std::string & logFileName() const
Returns the FIX Engine log file name.
bool createEngineLogFile() const
The option to create the FIX Engine log file.
EngineSettings & sslListenPort(int value)
The FIX Engine listens on this port for incoming SSL connections.
EngineSettings & validateChecksum(bool)
Sets the option to validate the checksum of incoming messages.
unsigned messageGrouping() const
Gets the message grouping option.
const std::string & dictionaryFile() const
Returns the path to the XML file with the description of the FIX Dictionary(s).
EngineSettings & serviceThreadAffinity(const OnixS::Threading::CpuIndexes &cpuIndexes)
Sets the CPU affinity of Engine service threads.
bool processDeliverToCompId() const
The option to process the DeliverToCompID (tag 128) flag.
EngineSettings & serviceThreadAffinity(const OnixS::Threading::CpuIndex cpuIndex)
Sets the CPU affinity of Engine service threads.
EngineSettings & serviceThreadPriority(int priority)
Sets the priority of Engine service threads.
EngineSettings & sslLocalInterface(const LocalNetworkInterfaces &)
Sets local interfaces where the engine listen for incoming SSL connections.
int sendSpinningTimeout() const
Gets the current send spinning timeout value (in microseconds).
EngineSettings & licenseStore(const std::string &value)
Specifies the path to the license directory.
EngineSettings & asyncFileBasedStorageThreadAffinity(const OnixS::Threading::CpuIndex cpuIndex)
Sets the CPU affinity of asynchronous session storage threads.
const ListenPorts & listenPorts() const
Returns listen ports.
bool specifyLastMsgSeqNumProcessed() const
Gets the option to specify the LastMsgSeqNumProcessed (tag=369) field on every message sent....
EngineSettings & listenPorts(const ListenPorts &value)
Set listen ports.
EngineSettings & validateEmptyFieldValues(bool)
Sets the option to validate the empty field values of FIX messages in accordance with the FIX protoco...
const LocalNetworkInterfaces & sslLocalInterface() const
The FIX Engine listens on these local interfaces for incoming SSL connections.
EngineSettings & sslMaxProtocolVersion(SslProtocolMinMaxVersion::Enum version)
Sets the maximal SSL/TLS protocol version that will be declared during the SSL/TLS handshake.
size_t resendingBatchSize() const
Returns the maximum number of messages sent in reply to the Resend Request <2> before temporarily rel...
unsigned asyncFileBasedStorageQueueMaxSize() const
Gets the log queue maximum size of the asynchronous session storage.
static const int UseDefaultSendBufferSize
Specifies the usage of the operating system default SendBuffer size.
EngineSettings & validateRepeatingGroupLeadingTag(bool)
Sets the option to validate the repeating group leading tag of FIX messages in accordance with the FI...
EngineSettings & firstLogonTimeout(unsigned timeout)
Sets the timeout (in seconds) between an incoming TCP connection is detected and the first Logon mess...
bool specifyApplVerIdField() const
Gets the option to specify the ApplVerID(1128) tag in all application FIX messages when a FIX protoco...
bool sendLogoutOnInvalidLogon() const
The option to send the Logout message before dropping the telecommunication link in case of an invali...
bool logBeforeSending() const
Returns 'true' if outbound messages are logged before sending, otherwise - 'false'.
EngineSettings & logFileName(const std::string &value)
Sets the FIX Engine log file name.
EngineSettings & expectedIncomingMessageSize(int value)
Sets the expected incoming FIX message size.
EngineSettings & validateUnknownMessages(bool)
Sets the option to validate the presence of unknown FIX messages (messages that do not belong to the ...
EngineSettings & validateDuplicatedField(bool)
Sets the option to validate the duplicated field.
EngineSettings & threadPoolSize(int size)
Sets the thread pool size.
EngineSettings & sendLogoutOnInvalidLogon(bool value)
Returns the value of the option to send the Logout message before dropping the telecommunication link...
EngineSettings & resendingQueueSize(size_t value)
Sets the number of sent messages that are available for the resending on the counterparty's Resend Re...
int serviceThreadPriority() const
Returns the priority of Engine service threads.
EngineSettings & sslListenPorts(const ListenPorts &value)
Sets SSL listen ports.
EngineSettings & threadingModel(ThreadingModel::Enum value)
Sets the default mode for outbound and incoming connections.
bool validateRequiredFields() const
Gets the option to validate the presence of required fields in inbound and outbound messages.
EngineSettings & licenseFile(const std::string &value)
Specifies the path to the license file.
int sslListenPort() const
The FIX Engine listens on this port for incoming SSL connections.
bool sendLogoutOnException() const
The option to send the Logout message before dropping the telecommunication link in case of an Except...
const std::string & sslCaFile() const
Returns the path to trusted certification authority certificate file in the (Privacy Enhanced Mail) B...
int receiveSpinningTimeout() const
Gets the current receive spinning timeout value (in microseconds).
EngineSettings & sslPrivateKeyFile(const std::string &value)
Sets the path to the SSL private key file in the (Privacy Enhanced Mail) Base64 encoded (....
int serviceThreadPolicy() const
Returns the policy of Engine service threads.
EngineSettings & sendBufferSize(int value)
Sets the size of the TCP buffer allocated to the FIX connection for sending data.
bool ignoreFileBasedStorageIntegrityErrors() const
Gets mode of the file based storage integrity errors checking. Valuable only when the value of fileBa...
bool validateDuplicatedField() const
Gets the option to validate the duplicated field.
EngineSettings & sendLogoutOnException(bool value)
Returns the value of the option to send the Logout message before dropping the telecommunication link...
EngineSettings & scrambleLogonFields(const Session::ScrambledFields &fields)
Sets the option to scramble fields in the Logon(A) message, in the session storage and the FIX Engine...
const std::string & dialectString() const
Returns the string that contains the plain text string with the description of the FIX dialect.
EngineSettings & messageGrouping(unsigned value)
Sets the message grouping option: Value 0 means the default grouping - the messages will be tried to ...
int resendRequestMaximumRange() const
Returns the maximum number of messages to be requested in one Resend Request (MsgType=2) message.
EngineSettings & localNetworkInterface(const LocalNetworkInterfaces &)
Sets local interfaces where the engine listen for incoming connections.
const LocalNetworkInterfaces & localNetworkInterface() const
The FIX Engine listens on these local interfaces for incoming "plain text" connections.
const std::string & sslPrivateKeyFile() const
Returns the path to the SSL private key file in the (Privacy Enhanced Mail) Base64 encoded (....
bool validateEmptyFieldValues() const
Gets the option to validate the empty field values of FIX messages in accordance with the FIX protoco...
EngineSettings & processDeliverToCompId(bool value)
The option to process the DeliverToCompID (tag 128) flag.
const OnixS::Threading::CpuIndexes & asyncFileBasedStorageThreadAffinity()
Returns the CPU affinity of asynchronous session storage threads.
EngineSettings & heartbeatResolution(HeartbeatResolution resolution)
Sets the heartbeat resolution.
EngineSettings & logBeforeSending(bool value)
The option to switch on/off logging of outbound messages before/after sending.
const std::string & licenseStore() const
Returns the path to the license directory.
bool validateUnknownMessages() const
Gets the option to validate the presence of unknown FIX messages (messages that do not belong to the ...
EngineSettings & sslClientSni(const std::string &hostName)
Sets the client-side SNI-extension field.
EngineSettings & ignoreFileBasedStorageIntegrityErrors(bool value)
Sets mode of the file based storage integrity errors checking.
bool tcpNoDelayOption() const
Gets the option to improve the latency at the expense of the message throughput (TCP_NODELAY).
const OnixS::Threading::CpuIndexes & serviceThreadAffinity()
Returns the CPU affinity of Engine service threads.
EngineSettings & asyncFileBasedStorageThreadAffinity(const OnixS::Threading::CpuIndexes &cpuIndexes)
Sets the CPU affinity of asynchronous session storage threads.
bool useSpinLock() const
Returns the default mode for using a spin lock.
bool validateRepeatingGroupLeadingTag() const
Gets the option to validate the repeating group leading tag of FIX messages in accordance with the FI...
EngineSettings(const EngineSettings &)
The copy constructor.
EngineSettings & validateUnknownFields(bool)
Sets the option to validate the presence of unknown fields (fields that do not belong to the message ...
EngineSettings & localTimeUsage(bool value)
Specifies the usage of the local time in FIX Engine events and log files.
bool validateUnknownFields() const
Gets the option to validate the presence of unknown fields (fields that do not belong to the message ...
EngineSettings & enableRxTimestamp(bool value)
Sets the value of the option to enable received data timestamp.
std::vector< Tag > ScrambledFields
The collection of scrambled tags.
std::vector< LocalNetworkInterface > LocalNetworkInterfaces
std::string LocalNetworkInterface
Local interfaces.
std::vector< int > ListenPorts
Listen ports.
size_t CpuIndex
Logical processors that a thread is allowed to run on (first logical CPU has index 0).
std::set< CpuIndex > CpuIndexes