OnixS C++ CME iLink 3 Binary Order Entry Handler  1.8.0
API Documentation
Session States

During the iLink 3 session lifetime, state changes occur. The OnixS::CME::iLink3::Session class exposes the OnixS::CME::iLink3::Session::state member to determine in which state it currently resides.

The OnixS::CME::iLink3::SessionStateId::Enum reflects all possible iLink 3 session states that can occur during its lifetime, as well as what a specific state means.

Tracking Session State Change

OnixS::CME::iLink3::SessionListener class exposes OnixS::CME::iLink3::SessionListener::onStateChange virtual function for its users.

Overriding this member in descendant classes provides an ability to be notified about all changes in state of a particular session.

Example

using namespace OnixS::CME;
using namespace OnixS::CME::iLink3;
class SessionStateListener : public SessionListener
{
public:
void onStateChange(SessionStateId::Enum newState, SessionStateId::Enum prevState, Session* /*session*/) ONIXS_ILINK3_OVERRIDE
{
std::clog
<< "Session's state is changed, prevState="
<< ", newState="
<< std::endl;
}
};