Public Member Functions | |
| MulticastClient () | |
| Creates a MulticastClient. | |
| virtual | ~MulticastClient () |
| Destructor. | |
| void | join (const std::string &ip, int port) |
| Adds a MulticastClient to the multicast group using all network interfaces. | |
| void | join (const std::string &ip, int port, const std::string &networkInterface) |
| Adds a MulticastClient to the multicast group using the given network interface. | |
| void | drop () |
| Leaves the multicast group. | |
| const std::vector< char > & | receive () |
| Receives a multicast packet. | |
| const std::vector< char > & | receive (long timeoutInMilliseconds) |
| Receives a multicast packet. | |
| void | send (const std::string &packet) |
| Sends the given multicast packet. | |
| void | send (const char *packet, size_t packetSize) |
| Sends the given multicast packet. | |
Definition at line 19 of file MulticastClient.h.
| MulticastClient | ( | ) |
Creates a MulticastClient.
| virtual ~MulticastClient | ( | ) | [virtual] |
Destructor.
| void join | ( | const std::string & | ip, | |
| int | port | |||
| ) |
Adds a MulticastClient to the multicast group using all network interfaces.
| void join | ( | const std::string & | ip, | |
| int | port, | |||
| const std::string & | networkInterface | |||
| ) |
Adds a MulticastClient to the multicast group using the given network interface.
| void drop | ( | ) |
Leaves the multicast group.
| const std::vector<char>& receive | ( | ) |
Receives a multicast packet.
Multicast group must be joined first.
| const std::vector<char>& receive | ( | long | timeoutInMilliseconds | ) |
Receives a multicast packet.
Multicast group must be joined first.
| void send | ( | const std::string & | packet | ) |
Sends the given multicast packet.
| void send | ( | const char * | packet, | |
| size_t | packetSize | |||
| ) |
Sends the given multicast packet.
1.5.2