Package AccessGrid :: Module MulticastAddressAllocator :: Class MulticastAddressAllocator
[show private | hide private]
[frames | no frames]

Class MulticastAddressAllocator

NetworkAddressAllocator --+
                          |
                         MulticastAddressAllocator


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)

Class Variable Summary
str INTERVAL = 'interval'
str RANDOM = 'random'
str SDR_BASE_ADDRESS = '224.2.128.0'
int SDR_MASK_SIZE = 17                                                                    

Method Details

__init__(self, baseAddress=None, addressMaskSize=24, portBase=49152)
(Constructor)

We initialize this class with the information needed to allocate addresses. A base address and address mask imply we're allocating from a GLOP address space. If a base address and mask are not supplied the allocator allocates from the SDR address space.

Overrides:
AccessGrid.NetworkAddressAllocator.NetworkAddressAllocator.__init__

Class Variable Details

INTERVAL

Type:
str
Value:
'interval'                                                             

RANDOM

Type:
str
Value:
'random'                                                               

SDR_BASE_ADDRESS

Type:
str
Value:
'224.2.128.0'                                                          

SDR_MASK_SIZE

Type:
int
Value:
17                                                                    

Generated by Epydoc 2.1 on Thu Apr 14 16:39:26 2005 http://epydoc.sf.net