Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | Related Pages

DataDistributorClient Class Reference

Data distributor client class. More...

List of all members.

Public Member Functions

 __init__ (name=None, size=641024)
 connect (server)
 disconnect ()
 returnNone ()
 receive ()


Detailed Description

Data distributor client class.

Definition at line 61 of file DataDistributor.py.


Member Function Documentation

__init__ name  = None,
size  = 641024
 

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.

connect 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.

disconnect  ) 
 

Gracefully shut down the socket.

receive  ) 
 

Receive multicast data and the sender's identification.

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

returnNone  ) 
 

Method to signal the receive loop to exit.


The documentation for this class was generated from the following file:
Generated on Fri Jul 21 13:26:41 2006 for LATTE R04-12-00 by doxygen 1.4.3