OnixS C++ CME iLink 3 Binary Order Entry Handler  1.15.0
API Documentation
Listening to Session Events

To be notified about a session event, override the corresponding member of the OnixS::CME::iLink3::SessionListener class, and supply the class instance to the OnixS::CME::iLink3::Session's constructor.

Session event handling/listening is the synchronous operation, so it is recommended not to perform time-consuming tasks inside event handlers.


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