GstRTSPAddressPool: GStreamer RTSP Server Reference Manual

## GstRTSPAddressPool GstRTSPAddressPool |

## Functions

GstRTSPAddress * | gst_rtsp_address_copy ()
void | gst_rtsp_address_free ()
GstRTSPAddressPool * | gst_rtsp_address_pool_new ()
void | gst_rtsp_address_pool_clear ()
void | gst_rtsp_address_pool_dump ()
gboolean | gst_rtsp_address_pool_add_range ()
gboolean | gst_rtsp_address_pool_has_unicast_addresses ()
GstRTSPAddress * | gst_rtsp_address_pool_acquire_address ()
GstRTSPAddressPoolResult | gst_rtsp_address_pool_reserve_address ()

## Types and Values

#define | GST_RTSP_ADDRESS_POOL_ANY_IPV4
#define | GST_RTSP_ADDRESS_POOL_ANY_IPV6
struct | GstRTSPAddress
enum | GstRTSPAddressFlags
struct | GstRTSPAddressPool
struct | GstRTSPAddressPoolClass
enum | GstRTSPAddressPoolResult

## Object Hierarchy

        GObject
        ╰── GstRTSPAddressPool

## Description

## Functions

### gst_rtsp_address_copy ()

    GstRTSPAddress *
    gst_rtsp_address_copy (GstRTSPAddress *addr);

### gst_rtsp_address_free ()

    void
    gst_rtsp_address_free (GstRTSPAddress *addr);

### gst_rtsp_address_pool_new ()

    GstRTSPAddressPool *
    gst_rtsp_address_pool_new (void);

### gst_rtsp_address_pool_clear ()

    void
    gst_rtsp_address_pool_clear (GstRTSPAddressPool *pool);

### gst_rtsp_address_pool_dump ()

    void
    gst_rtsp_address_pool_dump (GstRTSPAddressPool *pool);

### gst_rtsp_address_pool_add_range ()

    gboolean
    gst_rtsp_address_pool_add_range (GstRTSPAddressPool *pool,
                                     const gchar *min_address,
                                     const gchar *max_address,
                                     guint16 min_port,
                                     guint16 max_port,
                                     guint8 ttl);

### gst_rtsp_address_pool_has_unicast_addresses ()

    gboolean
    gst_rtsp_address_pool_has_unicast_addresses
                                   (GstRTSPAddressPool *pool);

### gst_rtsp_address_pool_acquire_address ()

    GstRTSPAddress *
    gst_rtsp_address_pool_acquire_address (GstRTSPAddressPool *pool,
                                           GstRTSPAddressFlags flags,
                                           gint n_ports);

### gst_rtsp_address_pool_reserve_address ()

    GstRTSPAddressPoolResult
    gst_rtsp_address_pool_reserve_address (GstRTSPAddressPool *pool,
                                           const gchar *ip_address,
                                           guint port,
                                           guint n_ports,
                                           guint ttl,
                                           GstRTSPAddress **address);

## Types and Values

### GST_RTSP_ADDRESS_POOL_ANY_IPV4

    #define GST_RTSP_ADDRESS_POOL_ANY_IPV4  "0.0.0.0"

### GST_RTSP_ADDRESS_POOL_ANY_IPV6

    #define GST_RTSP_ADDRESS_POOL_ANY_IPV6  "::"

### struct GstRTSPAddress

    struct GstRTSPAddress {
      GstRTSPAddressPool *pool;

      gchar *address;
      guint16 port;
      gint n_ports;
      guint8 ttl;
    };

### enum GstRTSPAddressFlags

#### Members

GST_RTSP_ADDRESS_FLAG_NONE |  |
GST_RTSP_ADDRESS_FLAG_IPV4 |  |
GST_RTSP_ADDRESS_FLAG_IPV6 |  |
GST_RTSP_ADDRESS_FLAG_EVEN_PORT |  |
GST_RTSP_ADDRESS_FLAG_MULTICAST |  |
GST_RTSP_ADDRESS_FLAG_UNICAST |  |

### struct GstRTSPAddressPool

    struct GstRTSPAddressPool;

### struct GstRTSPAddressPoolClass

    struct GstRTSPAddressPoolClass {
      GObjectClass  parent_class;
    };

### enum GstRTSPAddressPoolResult

#### Members

GST_RTSP_ADDRESS_POOL_OK |  |
GST_RTSP_ADDRESS_POOL_EINVAL |  |
GST_RTSP_ADDRESS_POOL_ERESERVED |  |
GST_RTSP_ADDRESS_POOL_ERANGE |  |
GST_RTSP_ADDRESS_POOL_ELAST |  |