This class provides a clean API for allocating general network
addresses. For typical unicast networks this devolves to picking
port numbers. So that's all that's done here.
Method Summary |
|
__init__ (self,
portBase,
portMax)
We only need to initialize port information. |
|
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)
|