#include <MulticastSerialized.h>
Inheritance diagram for MCSerializedClient:


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_ |
| void unpack | ( | T & | object | ) | [inline] |
Reads an object to the packet.
| [in] | object | Serilizable object to be added to the packet. |
| int open | ( | const char * | address, | |
| int | port | |||
| ) | [inherited] |
Opens a multicast client connection.
| [in] | address | multicast IP address. |
| [in] | port | multicast port. |
1.5.1-p1