This class provides a clean API for allocating multicast addresses. It can
provide addresses either randomly from the predefined SDP pool or randomly
from a pool provided by the user.
| Method Summary |
| |
__init__(self,
baseAddress,
addressMaskSize,
portBase)
We initialize this class with the information needed to allocate
addresses. |
| |
AllocateAddress(self)
|
| |
GetAddressMask(self)
|
| |
GetBaseAddress(self)
|
| |
RecycleAddress(self,
address)
|
| |
SetAddressMask(self,
addressMaskSize)
|
| |
SetBaseAddress(self,
baseAddress)
|
| Inherited from NetworkAddressAllocator |
| |
AllocatePort(self,
even)
if the even flag is set we allocate only an even port to support
RTP standard use cases. |
| |
AllocatePortInRange(self,
even,
portBase,
portMax)
|
| |
GetAllocationMethod(self)
|
| |
RecyclePort(self,
port)
|
| |
SetAllocationMethod(self,
method)
|
| |
SetPortBase(self,
portBase)
|
| |
SetPortMax(self,
portMax)
|