Abstract: No Structure:
An address pool, all member are private
Returns: a new
Make a new
Parameters: Returns: Return type:
Take an address and ports from self. flags can be used to control the allocation. n_ports consecutive ports will be allocated of which the first one can be found in port.
add_range(min_address, max_address, min_port, max_port, ttl)¶
Trueif the addresses could be added.
Adds the addresses from min_addess to max_address (inclusive) to self. The valid port range for the addresses will be from min_port to max_port inclusive.
When ttl is 0, min_address and max_address should be unicast addresses. min_address and max_address can be set to
GstRtspServer.RTSP_ADDRESS_POOL_ANY_IPV6to bind to all available IPv4 or IPv6 addresses.
When ttl > 0, min_address and max_address should be multicast addresses.
Clear all addresses in self. There should be no outstanding allocations.
Dump the free and allocated addresses to stdout.
Trueif the pool includes any unicast addresses,
Used to know if the pool includes any unicast addresses.
reserve_address(ip_address, port, n_ports, ttl)¶
Parameters: Returns: address: storage for a
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.