| Home | Trees | Index | Help |
|
|---|
| Package AccessGrid :: Module NetworkAddressAllocator :: Class NetworkAddressAllocator |
|
MulticastAddressAllocatorThis 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 | |
|---|---|
We only need to initialize port information. | |
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)
| |
| Class Variable Summary | |
|---|---|
str |
INTERVAL = 'interval'
|
str |
RANDOM = 'random'
|
| Method Details |
|---|
__init__(self,
portBase=49152,
portMax=65535)
|
AllocatePort(self, even=0)if the even flag is set we allocate only an even port to support RTP standard use cases. |
| Class Variable Details |
|---|
INTERVAL
|
RANDOM
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Mon Jan 09 13:23:51 2006 | http://epydoc.sf.net |