#include <MulticastClient.h>
Inheritance diagram for MulticastClient:


Public Member Functions | |
| int | read (void) |
| Waits for an incoming multicast packet and stores it in the internal buffer. | |
| void | beginUnpack (void) |
| unsigned char * | endUnpack (void) |
| char | unpackChar (void) |
| short | unpackShort (void) |
| int | unpackInt (void) |
| float | unpackFloat (void) |
| double | unpackDouble (void) |
| char * | unpackString (void) |
| void | setBufferSize (int bsize) |
| void | unpackBuffer (void *buf, size_t size) |
| 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 * | p |
| 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_ |
| 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