DataDistributorServer Class Reference

Data Distributor Server. More...

List of all members.

Public Member Functions

def __init__
def connect
 Method to set up a socket and connect to it.
def disconnect
 Gracefully shut down the socket.
def publish
 Publish the data on the multicast socket.


Detailed Description

Data Distributor Server.

Definition at line 26 of file DataDistributor.py.


Member Function Documentation

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

Data Distributor server constructor.

\param name The name of the type of data to be served.
        See the DataDistributorAddress class.
\param size The size in bytes of the buffer to allocate for sending the
        data.  This is used to set the socket send buffer size.

Definition at line 28 of file DataDistributor.py.

def connect   self,
  server,
  interface = socket.gethostname()
 

Method to set up a socket and connect to it.

Parameters:
server The address of a socket on which to serve the data. 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.
interface The network interface to send multicast traffic on. Defaults to 'the primary network interface', however 'primary' is defined. See socket.gethostbyname_ex() documentation.

Definition at line 41 of file DataDistributor.py.

def disconnect   self  ) 
 

Gracefully shut down the socket.

Definition at line 94 of file DataDistributor.py.

def publish   self,
  data
 

Publish the data on the multicast socket.

Parameters:
data The data to be sent out on the multicast socket.

Definition at line 106 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