MulticastClientBase Class Reference
[Utility]

#include <MulticastBase.h>

Inheritance diagram for MulticastClientBase:

Inheritance graph
[legend]
Collaboration diagram for MulticastClientBase:

Collaboration graph
[legend]
List of all members.

Detailed Description

Base class for multicast clients.

This class takes care of initializing the multicast client connection and reading a received network packet.


Public Member Functions

int open (const char *address, int port)
 Opens a multicast client connection.
int read (void)
 Waits for an incoming multicast packet and stores it in the internal buffer.
void close (void)
 Closes the currently open connection.

Protected Types

enum  { bufferSize = 20000 }

Protected Attributes

unsigned char buffer [bufferSize]
asio::ip::udp::endpoint sender_endpoint_
asio::io_service io_service
asio::ip::udp::socket * socket_
asio::ip::udp::endpoint * endpoint_


Member Function Documentation

int open ( const char *  address,
int  port 
)

Opens a multicast client connection.

Parameters:
[in] address multicast IP address.
[in] port multicast port.


The documentation for this class was generated from the following file:
Generated on Tue Mar 6 17:57:18 2007 for AME Repository by  doxygen 1.5.1-p1