SessionPool
Object Hierarchy:
Description:
[ CCode ( cname = "GstRTSPSessionPool" , lower_case_cprefix = "gst_rtsp_session_pool_" , type_id = "gst_rtsp_session_pool_get_type ()" ) ]
[ GIR ( name = "RTSPSessionPool" ) ]
public class SessionPool : Object
An object that keeps track of the active sessions.
This object is usually attached to a Server object to manage the sessions in that
server.
Content:
Properties:
Creation methods:
Methods:
- public uint cleanup ()
Inspect all the sessions in this and
remove the sessions that are inactive for more than their timeout.
- public Session? create ()
Create a new
Session object in this.
- public virtual Session create_session (string id)
- public virtual string create_session_id ()
- public Source create_watch ()
Create a SocketSource that will be
dispatched when the session should be cleaned up.
- public List<Session> filter (SessionPoolFilterFunc? func)
Call func
for each session in
this.
- public Session? find (string sessionid)
Find the session with sessionid
in
this.
- public uint get_max_sessions ()
Get the maximum allowed number of sessions in
this.
- public uint get_n_sessions ()
Get the amount of active sessions in this
.
- public bool remove (Session sess)
Remove sess
from this,
releasing the ref that the pool has on sess
.
- public void set_max_sessions (uint max)
Configure the maximum allowed number of sessions in
this to max
.
Signals:
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref