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

The OnixS::CME::iLink3::SessionStateId::Enum reflects all session states that can occur during its lifetime and what a specific state means.

The OnixS::CME::iLink3::Session::state member returns the current session state.

Tracking Session State Changes

To be notified about a session state change, override the OnixS::CME::iLink3::SessionListener::onStateChange, and supply the class instance to the OnixS::CME::iLink3::Session's constructor.

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*/) override
{
std::clog
<< "Session's state is changed, prevState="
<< ", newState="
<< std::endl;
}
};
See also
Listening to Session Events