GstRtspServer.RTSPAddressPool¶
| Subclasses: | None | 
|---|
Methods¶
| Inherited: | GObject.Object (37) | 
|---|---|
| Structs: | GObject.ObjectClass (5) | 
| class | new() | 
| acquire_address(flags, n_ports) | |
| add_range(min_address, max_address, min_port, max_port, ttl) | |
| clear() | |
| dump() | |
| has_unicast_addresses() | |
| reserve_address(ip_address, port, n_ports, ttl) | 
Virtual Methods¶
| Inherited: | GObject.Object (7) | 
|---|
Properties¶
None
Signals¶
| Inherited: | GObject.Object (1) | 
|---|
Fields¶
| Inherited: | GObject.Object (1) | 
|---|
| Name | Type | Access | Description | 
|---|---|---|---|
| parent | GObject.Object | r | the parent GObject.Object | 
Class Details¶
- 
class GstRtspServer.RTSPAddressPool(**kwargs)¶
- Bases: - GObject.Object- Abstract: - No - Structure: - GstRtspServer.RTSPAddressPoolClass- An address pool, all member are private - 
classmethod new()[source]¶
- Returns: - a new - GstRtspServer.RTSPAddressPool- Return type: - GstRtspServer.RTSPAddressPool- Make a new - GstRtspServer.RTSPAddressPool.
 - 
acquire_address(flags, n_ports)[source]¶
- Parameters: - flags (GstRtspServer.RTSPAddressFlags) – flags
- n_ports (int) – the amount of ports
 - Returns: - a - GstRtspServer.RTSPAddressthat should be freed with- GstRtspServer.RTSPAddress.freeafter use or- Nonewhen no address could be acquired.- 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. 
- flags (
 - 
add_range(min_address, max_address, min_port, max_port, ttl)[source]¶
- Parameters: - Returns: - Trueif the addresses could be added.- Return type: - 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_IPV4or- 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. 
 - 
has_unicast_addresses()[source]¶
- Returns: - Trueif the pool includes any unicast addresses,- Falseotherwise- Return type: - bool- Used to know if the pool includes any unicast addresses. 
 - 
reserve_address(ip_address, port, n_ports, ttl)[source]¶
- Parameters: - Returns: - GstRtspServer.RTSPAddressPoolResult.OKif an address was reserved. The address is returned in address and should be freed with- GstRtspServer.RTSPAddress.freeafter use.- address: - storage for a - GstRtspServer.RTSPAddress- Return type: - ( - GstRtspServer.RTSPAddressPoolResult, address:- GstRtspServer.RTSPAddress)- 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. 
 
- 
classmethod