Represents the server side of a Bridge session.
More...
|
typedef Interface_declare< id1,
id2, id3, id4, id5, id6, id7,
id8, id9, id10, id11,
IInterface > |
Self |
|
Own type. More...
|
|
typedef Uuid_t< id1, id2, id3,
id4, id5, id6, id7, id8, id9,
id10, id11 > |
IID |
|
Declares the interface ID (IID) of this interface. More...
|
|
static bool |
compare_iid (const Uuid &iid) |
|
Compares the interface ID iid against the interface ID of this interface and of its ancestors. More...
|
|
Adds a session state callback.
When adding a callback it will be called immediately once with the current state, and then every time the session state changes.
- See Also
- remove_session_state_callback()
- Parameters
-
callback |
The callback to be added. |
virtual IApplication* mi::bridge::IServer_session::get_application |
( |
) |
|
const |
|
pure virtual |
Returns the application this session belongs to.
virtual const char* mi::bridge::IServer_session::get_security_token |
( |
) |
|
const |
|
pure virtual |
Returns the security token specified by the client.
virtual const char* mi::bridge::IServer_session::get_session_id |
( |
) |
|
const |
|
pure virtual |
Returns the state of this session.
Returns the video context for a given ID.
Video contexts must first be created by the client and can then be retrieved on the server via this method. The video context ID is assigned when the video context is created on the client side and must be transfered to the server before calling this method. The recommended way to do this is to execute a Bridge job containing the video context ID and optionally other data that is required for the server-side application to set up the video source and to start producing frames.
- Parameters
-
context_id |
The video context ID. |
- Returns
- The video context or
NULL
if no video context with the provided ID exists.