41 void join(
const std::string & ip,
int port);
45 void join(
const std::string & ip,
int port,
const std::string & networkInterface);
67 void send(
const std::string & packet);
70 void send(
const void * packet,
size_t packetSize);
#define ONIXS_FIXENGINE_API
Provides the User Datagram Protocol (UDP) multicast mode network services.
const Bytes & receive(long timeoutInMilliseconds)
Receives a multicast packet.
void drop()
Leaves the multicast group.
void send(const std::string &packet)
Sends the given multicast packet.
const Bytes & receive()
Receives a multicast packet.
void send(const void *packet, size_t packetSize)
Sends the given multicast packet.
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 join(const std::string &ip, int port)
Adds a MulticastClient to the multicast group using all network interfaces.
MulticastClient()
Creates a MulticastClient.
virtual ~MulticastClient()
Finalize the instance.
std::vector< Byte > Bytes
Sequence of bytes.