OnixS C++ FIX Engine 2.79.1.0
MulticastClient Class Reference

Provides User Datagram Protocol (UDP) multicast mode network services.

List of all members.

Public Member Functions

 MulticastClient ()
virtual ~MulticastClient ()
void join (const std::string &ip, int port)
void join (const std::string &ip, int port, const std::string &networkInterface)
void drop ()
const std::vector< char > & receive ()
const std::vector< char > & receive (long timeoutInMilliseconds)
void send (const std::string &packet)
void send (const char *packet, size_t packetSize)

Member Function Documentation

const std::vector<char>& receive ( long  timeoutInMilliseconds)

Receives a multicast packet.

Note:
Blocks until the packet is received or the timeout period is elapsed.
Multicast group must be joined first.
Returns:
The received multicast packet or an empty vector if the timeout period is elapsed.
const std::vector<char>& receive ( )

Receives a multicast packet.

Note:
Blocks until the packet is received.
Multicast group must be joined first.
Returns:
The received multicast packet.