OnixS C++ CME iLink 3 Binary Order Entry Handler  1.18.9
API Documentation

Session Scheduler exposes the OnixS::CME::iLink3::Scheduling::SessionConnectionSettings class to define the connection related parameters, required to establish iLink 3 Session successfully. The OnixS::CME::iLink3::Scheduling::SessionConnectionSettings class is targeted to provide users with a handy way of defining connection-related parameters for sessions appropriately.

Defining Connection Settings for Sessions

When a session is connected, at least hostname and TCP port of the counterparty must be specified. For this reason, all constructors of the OnixS::CME::iLink3::Scheduling::SessionConnectionSettings class require counterparty hostname and TCP port parameters.

SessionConnectionSettings basicSettings("localhost", 4500);

Sometimes a session's counterparty may be out of service, causing session logon failure. CME systems provide secondary servers, which can be connected while primary servers are down. To support such cases, OnixS::CME::iLink3::Scheduling::SessionConnectionSettings class exposes the OnixS::CME::iLink3::Scheduling::SessionConnectionSettings::addCounterparty member, which allows defining secondary servers, that will be connected in case of the connection failure to the primary server. Also, Scheduler remembers last good connection settings (counterparty). Therefore, since the next time connection must be established, it will use the last good configuration.

SessionConnectionSettings settingsWithSecondaryServer("primary.domain.com", 4500);
settingsWithSecondaryServer.addCounterparty("secondary.domain.com", 4600);