mi::bridge::IApplication_session_handler Class Reference
[Bridge server]
Description
Abstract interface that can be used to control which sessions to a Bridge application are established, based on credentials supplied by the client.
See also:
mi::bridge::IApplication::set_session_handler()
Public Member Functions
- virtual bool on_session_connect( IServer_session* session) =0
- This method is called when a session to a Bridge application is to be established. More...
Member Functions
- virtual bool mi::bridge::IApplication_session_handler::on_session_connect( IServer_session* session) [pure virtual]
-
This method is called when a session to a Bridge application is to be established. Use mi::bridge::IServer_session::get_security_token() to obtain the security token string supplied by the client when connecting. This token can be used to decide whether the client is allowed to connect.
Parameters
- session
- The session that is to be established.
Returns
true to accept the session, false to reject it.