pub trait RTSPAddressPoolExtManual: Sealed + IsA<RTSPAddressPool> + 'static {
    // Provided method
    fn reserve_address(
        &self,
        ip_address: &str,
        port: u32,
        n_ports: u32,
        ttl: u32
    ) -> Result<RTSPAddress, RTSPAddressPoolResult> { ... }
}

Provided Methods§

source

fn reserve_address( &self, ip_address: &str, port: u32, n_ports: u32, ttl: u32 ) -> Result<RTSPAddress, RTSPAddressPoolResult>

Take a specific address and ports from self. n_ports consecutive ports will be allocated of which the first one can be found in port.

If ttl is 0, address should be a unicast address. If ttl > 0, address should be a valid multicast address.

§ip_address

The IP address to reserve

§port

The first port to reserve

§n_ports

The number of ports

§ttl

The requested ttl

§Returns

RTSPAddressPoolResult::Ok if an address was reserved. The address is returned in address and should be freed with gst_rtsp_address_free after use.

§address

storage for a RTSPAddress

Object Safety§

This trait is not object safe.

Implementors§