OnixS C++ CME MDP Conflated TCP Handler  1.0.1
API Documentation
Session States

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

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

Tracking Session State Changes

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

Example

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