OnixS C++ CME MDP Conflated TCP Handler  1.3.6
API Documentation
Listening to Session Events

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

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

Example

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
<< "\nSession's state is changed, prevState="
<< ", newState="
<< std::endl;
}
};