reserve_address


Description:

public AddressPoolResult reserve_address (string ip_address, uint port, uint n_ports, uint ttl, out Address address)

Take a specific address and ports from this.

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.

Parameters:

this

a AddressPool

ip_address

The IP address to reserve

port

The first port to reserve

n_ports

The number of ports

ttl

The requested ttl

address

storage for a Address

Returns:

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