Server
Object Hierarchy:
Description:
[ CCode ( cname = "GstRTSPServer" , lower_case_cprefix = "gst_rtsp_server_" , type_id = "gst_rtsp_server_get_type ()" ) ]
[ GIR ( name = "RTSPServer" ) ]
public class Server : Object
[ GIR ( name = "RTSPServer" ) ]
public class Server : Object
This object listens on a port, creates and manages the clients connected to it.
All known sub-classes:
Namespace: Gst.RTSPServer
Package: gstreamer-rtsp-server-1.0
Content:
Properties:
- public string address { owned get; set; }
- public int backlog { get; set; }
- public int bound_port { get; }
- public uint content_length_limit { get; set; }
- public MountPoints mount_points { owned get; set; }
- public string service { owned get; set; }
- public SessionPool session_pool { owned get; set; }
Static methods:
- public static bool io_func (Socket socket, IOCondition condition, Server server)
A default SocketSourceFunc that creates a new Client to accept and handle a new connection on
socket
orserver
.
Creation methods:
- public Server ()
Create a new Server instance.
Methods:
- public uint attach (MainContext? context)
Attaches this to
context
. - public List<Client> client_filter (ServerClientFilterFunc? func)
Call
func
for each client managed by this. - public virtual Client create_client ()
- public Socket create_socket (Cancellable? cancellable = null) throws Error
Create a Socket for this.
- public Source create_source (Cancellable? cancellable = null) throws Error
Create a SocketSource for this.
- public string? get_address ()
Get the address on which the server will accept connections.
- public Auth? get_auth ()
Get the Auth used as the authentication manager of this.
- public int get_backlog ()
The maximum amount of queued requests for the server.
- public int get_bound_port ()
Get the port number where the server was bound to.
- public uint get_content_length_limit ()
Get the Content-Length limit of this.
- public MountPoints? get_mount_points ()
Get the MountPoints used as the mount points of this.
- public string get_service ()
Get the service on which the server will accept connections.
- public SessionPool? get_session_pool ()
Get the SessionPool used as the session pool of this.
- public ThreadPool? get_thread_pool ()
Get the ThreadPool used as the thread pool of this.
- public void set_address (string address)
Configure this to accept connections on the given address.
- public void set_auth (Auth? auth)
configure
auth
to be used as the authentication manager of this. - public void set_backlog (int backlog)
configure the maximum amount of requests that may be queued for the server.
- public void set_content_length_limit (uint limit)
Define an appropriate request size limit and reject requests exceeding the limit.
- public void set_mount_points (MountPoints? mounts)
configure
mounts
to be used as the mount points of this. - public void set_service (string service)
Configure this to accept connections on the given service.
- public void set_session_pool (SessionPool? pool)
configure
pool
to be used as the session pool of this. - public void set_thread_pool (ThreadPool? pool)
configure
pool
to be used as the thread pool of this. - public bool transfer_connection (owned Socket socket, string ip, int port, string? initial_buffer)
Take an existing network socket and use it for an RTSP connection.
Signals:
- public virtual signal void client_connected (Client client)
Inherited Members:
All known members inherited from class GLib.Object