MCSerializedClient Class Reference
[Utility]

#include <MulticastSerialized.h>

Inheritance diagram for MCSerializedClient:

Inheritance graph
[legend]
Collaboration diagram for MCSerializedClient:

Collaboration graph
[legend]
List of all members.

Detailed Description

Allows sending of serializable objects via the multicast protocol.

See also:
Serialization using Boost.Serialization for an example


Public Member Functions

int read (void)
 Waits for a multicast packet and begins its processing.
template<typename T>
void unpack (T &object)
 Reads an object to the packet.
int open (const char *address, int port)
 Opens a multicast client connection.
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

void unpack ( T &  object  )  [inline]

Reads an object to the packet.

Parameters:
[in] object Serilizable object to be added to the packet.

int open ( const char *  address,
int  port 
) [inherited]

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:19 2007 for AME Repository by  doxygen 1.5.1-p1