Session
Object Hierarchy:
Description:
[ CCode ( cname = "GstRTSPSession" , lower_case_cprefix = "gst_rtsp_session_" , type_id = "gst_rtsp_session_get_type ()" ) ]
[ GIR ( name = "RTSPSession" ) ]
public class Session : Object
Session information kept by the server for a specific client.
One client session, identified with a session id, can handle multiple medias identified with the url of a media.
Content:
Properties:
Creation methods:
Methods:
- public void allow_expire ()
Allow this to expire.
- public SessionMedia? dup_media (string path, out int matched)
Gets the session media for path
, increasing its reference
count.
- public List<SessionMedia> filter (SessionFilterFunc? func)
Call func
for each media in
this.
- public string? get_header ()
Get the string that can be placed in the Session header field.
- public unowned SessionMedia? get_media (string path, out int matched)
Gets the session media for path
.
- public unowned string? get_sessionid ()
Get the sessionid of this.
- public uint get_timeout ()
Get the timeout value of this.
- public bool is_expired (TimeVal now)
Check if this timeout out.
- public bool is_expired_usec (int64 now)
Check if this timeout out.
- public unowned SessionMedia manage_media (string path, owned Media media)
Manage the media object obj
in
this.
- public int next_timeout (TimeVal now)
Get the amount of milliseconds till the session will expire.
- public int next_timeout_usec (int64 now)
Get the amount of milliseconds till the session will expire.
- public void prevent_expire ()
Prevent this from expiring.
- public bool release_media (SessionMedia media)
Release the managed media
in
this, freeing the memory allocated by it.
- public void set_timeout (uint timeout)
Configure this for a timeout of
timeout
seconds.
- public void touch ()
Update the last_access time of the session to the current time.
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