GstRtspServer.RTSPAddressPool¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
the parent |
Class Details¶
- class GstRtspServer.RTSPAddressPool(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
An address pool, all member are private
- classmethod new()[source]¶
- Returns:
- Return type:
Make a new
GstRtspServer.RTSPAddressPool.
- acquire_address(flags, n_ports)[source]¶
- Parameters:
flags (
GstRtspServer.RTSPAddressFlags) – flagsn_ports (
int) – the amount of ports
- Returns:
a
GstRtspServer.RTSPAddressthat should be freed withGstRtspServer.RTSPAddress.freeafter use orNonewhen 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.
- 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_IPV4orGstRtspServer.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.
- 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 withGstRtspServer.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.