GstRTSPServer: GStreamer RTSP Server Reference Manual

## GstRTSPServer GstRTSPServer |

## Functions

GstRTSPServer * | gst_rtsp_server_new ()
gchar * | gst_rtsp_server_get_address ()
void | gst_rtsp_server_set_address ()
gchar * | gst_rtsp_server_get_service ()
void | gst_rtsp_server_set_service ()
gint | gst_rtsp_server_get_backlog ()
void | gst_rtsp_server_set_backlog ()
int | gst_rtsp_server_get_bound_port ()
GstRTSPMountPoints * | gst_rtsp_server_get_mount_points ()
void | gst_rtsp_server_set_mount_points ()
GstRTSPSessionPool * | gst_rtsp_server_get_session_pool ()
void | gst_rtsp_server_set_session_pool ()
GstRTSPThreadPool * | gst_rtsp_server_get_thread_pool ()
void | gst_rtsp_server_set_thread_pool ()
GstRTSPAuth * | gst_rtsp_server_get_auth ()
void | gst_rtsp_server_set_auth ()
gboolean | gst_rtsp_server_transfer_connection ()
gboolean | gst_rtsp_server_io_func ()
GSocket * | gst_rtsp_server_create_socket ()
GSource * | gst_rtsp_server_create_source ()
guint | gst_rtsp_server_attach ()
GstRTSPFilterResult | (*GstRTSPServerClientFilterFunc) ()
GList * | gst_rtsp_server_client_filter ()

## Properties

gchar * | address | Read / Write
gint | backlog | Read / Write
gint | bound-port | Read
GstRTSPMountPoints * | mount-points | Read / Write
gchar * | service | Read / Write
GstRTSPSessionPool * | session-pool | Read / Write

## Signals

void | client-connected | Run Last

## Types and Values

struct | GstRTSPServer
struct | GstRTSPServerClass

## Object Hierarchy

        GObject
        ╰── GstRTSPServer

## Description

## Functions

### gst_rtsp_server_new ()

    GstRTSPServer *
    gst_rtsp_server_new (void);

### gst_rtsp_server_get_address ()

    gchar *
    gst_rtsp_server_get_address (GstRTSPServer *server);

### gst_rtsp_server_set_address ()

    void
    gst_rtsp_server_set_address (GstRTSPServer *server,
                                 const gchar *address);

### gst_rtsp_server_get_service ()

    gchar *
    gst_rtsp_server_get_service (GstRTSPServer *server);

### gst_rtsp_server_set_service ()

    void
    gst_rtsp_server_set_service (GstRTSPServer *server,
                                 const gchar *service);

### gst_rtsp_server_get_backlog ()

    gint
    gst_rtsp_server_get_backlog (GstRTSPServer *server);

### gst_rtsp_server_set_backlog ()

    void
    gst_rtsp_server_set_backlog (GstRTSPServer *server,
                                 gint backlog);

### gst_rtsp_server_get_bound_port ()

    int
    gst_rtsp_server_get_bound_port (GstRTSPServer *server);

### gst_rtsp_server_get_mount_points ()

    GstRTSPMountPoints *
    gst_rtsp_server_get_mount_points (GstRTSPServer *server);

### gst_rtsp_server_set_mount_points ()

    void
    gst_rtsp_server_set_mount_points (GstRTSPServer *server,
                                      GstRTSPMountPoints *mounts);

### gst_rtsp_server_get_session_pool ()

    GstRTSPSessionPool *
    gst_rtsp_server_get_session_pool (GstRTSPServer *server);

### gst_rtsp_server_set_session_pool ()

    void
    gst_rtsp_server_set_session_pool (GstRTSPServer *server,
                                      GstRTSPSessionPool *pool);

### gst_rtsp_server_get_thread_pool ()

    GstRTSPThreadPool *
    gst_rtsp_server_get_thread_pool (GstRTSPServer *server);

### gst_rtsp_server_set_thread_pool ()

    void
    gst_rtsp_server_set_thread_pool (GstRTSPServer *server,
                                     GstRTSPThreadPool *pool);

### gst_rtsp_server_get_auth ()

    GstRTSPAuth *
    gst_rtsp_server_get_auth (GstRTSPServer *server);

### gst_rtsp_server_set_auth ()

    void
    gst_rtsp_server_set_auth (GstRTSPServer *server,
                              GstRTSPAuth *auth);

### gst_rtsp_server_transfer_connection ()

    gboolean
    gst_rtsp_server_transfer_connection (GstRTSPServer *server,
                                         GSocket *socket,
                                         const gchar *ip,
                                         gint port,
                                         const gchar *initial_buffer);

### gst_rtsp_server_io_func ()

    gboolean
    gst_rtsp_server_io_func (GSocket *socket,
                             GIOCondition condition,
                             GstRTSPServer *server);

### gst_rtsp_server_create_socket ()

    GSocket *
    gst_rtsp_server_create_socket (GstRTSPServer *server,
                                   GCancellable *cancellable,
                                   GError **error);

### gst_rtsp_server_create_source ()

    GSource *
    gst_rtsp_server_create_source (GstRTSPServer *server,
                                   GCancellable *cancellable,
                                   GError **error);

### gst_rtsp_server_attach ()

    guint
    gst_rtsp_server_attach (GstRTSPServer *server,
                            GMainContext *context);

### GstRTSPServerClientFilterFunc ()

    GstRTSPFilterResult
    (*GstRTSPServerClientFilterFunc) (GstRTSPServer *server,
                                      GstRTSPClient *client,
                                      gpointer user_data);

### gst_rtsp_server_client_filter ()

    GList *
    gst_rtsp_server_client_filter (GstRTSPServer *server,
                                   GstRTSPServerClientFilterFunc func,
                                   gpointer user_data);

## Types and Values

### struct GstRTSPServer

    struct GstRTSPServer;

### struct GstRTSPServerClass

    struct GstRTSPServerClass {
      GObjectClass  parent_class;

      GstRTSPClient * (*create_client)      (GstRTSPServer *server);

      /* signals */
      void            (*client_connected)   (GstRTSPServer *server, GstRTSPClient *client);
    };

## Property Details

### The `“address”` property

      “address”                  gchar *

The address the server uses to listen on.

Flags: Read / Write

Default value: "0.0.0.0"

### The `“backlog”` property

      “backlog”                  gint

The maximum length to which the queue of pending connections may grow.

Flags: Read / Write

Allowed values: >= 0

Default value: 5

### The `“bound-port”` property

      “bound-port”               gint

The port number the server is listening on.

Flags: Read

Allowed values: [-1,65535]

Default value: -1

### The `“mount-points”` property

      “mount-points”             GstRTSPMountPoints *

The mount points to use for client session.

Flags: Read / Write

### The `“service”` property

      “service”                  gchar *

The service or port number the server uses to listen on.

Flags: Read / Write

Default value: "8554"

### The `“session-pool”` property

      “session-pool”             GstRTSPSessionPool *

The session pool to use for client session.

Flags: Read / Write

## Signal Details

### The `“client-connected”` signal

    void
    user_function (GstRTSPServer *gstrtspserver,
                   GstRTSPClient *arg1,
                   gpointer       user_data)

Flags: Run Last