DataDistributorClient Class Reference

Data distributor client class. More...

List of all members.

Public Member Functions

def __init__
 Data Distributor client constructor.
def connect
 Open a UDP socket, bind it to a port and select a multicast group.
def disconnect
 Gracefully shut down the socket.
def returnNone
 Method to signal the receive loop to exit.
def receive
 Receive multicast data and the sender's identification.

Static Private Attributes

int __timeout = 1


Detailed Description

Data distributor client class.

Definition at line 120 of file DataDistributor.py.


Member Function Documentation

def __init__   self,
  name = None,
  size = 64*1024
 

Data Distributor client constructor.

Parameters:
name The name of the type of data that the client wants to receive. See the DataDistributorAddress class.
size The size in bytes of the buffer to allocate for receiving the data. Defaults to 64 KB.

Definition at line 124 of file DataDistributor.py.

def connect   self,
  server
 

Open a UDP socket, bind it to a port and select a multicast group.

Parameters:
server The address the server is multicasting on. This address must be the same for both server and client. The value can be in one of the following forms:
  • A number of which only the two lower decimal digits are used, i.e., in the range 0-99
  • <port><multicast address>, where <port> is a value that will override what is found from the data type name translation, and <multicast address>=""> is some valid multicast IP address starting with the value 239. A name may be used for the <multicast address>=""> value as well, as long as it can be found in the name server and translates to a valid multicast IP address.
  • <multicast address>="">, as discussed in the previous bullet. The port value is taken to be the one found from looking up the data type name in the port table.

Definition at line 139 of file DataDistributor.py.

def disconnect   self  ) 
 

Gracefully shut down the socket.

Definition at line 195 of file DataDistributor.py.

def receive   self  ) 
 

Receive multicast data and the sender's identification.

Returns:
A list of the data and the sender's identification string.

Definition at line 216 of file DataDistributor.py.

def returnNone   self  ) 
 

Method to signal the receive loop to exit.

Definition at line 210 of file DataDistributor.py.


Member Data Documentation

int __timeout = 1 [static, private]
 

Definition at line 122 of file DataDistributor.py.


The documentation for this class was generated from the following file:
Generated on Thu Apr 27 20:53:01 2006 for LICOS L02-01-00 by doxygen 1.4.6-NO