27 #ifndef SIMPLEMULTICASTSENDER 28 #define SIMPLEMULTICASTSENDER 66 const std::string& interfaceAddress =
"",
bool enableLoopback =
true,
68 size_t sendBufferSize = DEFAULT_UDP_BUF_SIZE);
84 const std::string& interfaceAddress =
"",
85 bool enableLoopback =
true,
87 size_t sendBufferSize = DEFAULT_UDP_BUF_SIZE);
107 std::string InterfaceAddress()
const;
116 bool SendMessage(int32_t messageId,
139 template <
typename T,
class A = serialize::archives::out_port_bin_t>
143 return m_multicastTypedSender.SendMessage<T, A>(message, messageId, responseAddress);
163 #endif // SIMPLEMULTICASTSENDER bool SendMessage(const T &message, int32_t messageId, const defs::connection_t &responseAddress=defs::NULL_CONNECTION)
Send a full message to the server.
Definition: SimpleMulticastSender.h:140
MulticastTypedSender< messages::MessageBuilder > m_multicastTypedSender
Our actual typed Multicast sender object.
Definition: SimpleMulticastSender.h:156
File containing UDP typed sender class declaration.
Multicast only to same subnet.
The core_lib namespace.
Definition: AsioDefines.h:59
eMulticastTTL
The multicast TTL enumeration.
Definition: AsioDefines.h:129
std::pair< std::string, uint16_t > connection_t
Typedef describing a network connection as (address, port).
Definition: AsioDefines.h:152
boost_asio::io_context boost_iocontext_t
Boost IO context convenience typedef.
Definition: AsioDefines.h:46
A generic UDP sender.
Definition: MulticastTypedSender.h:55
A simplified Multicast sender, which uses the class MessageHeader as the message header type...
Definition: SimpleMulticastSender.h:44
Default message builder class.
Definition: MessageUtils.h:268
std::vector< char > char_buffer_t
Typedef to generic char buffer based on s std::vector<char>.
Definition: AsioDefines.h:239
const connection_t NULL_CONNECTION
Constant defining a null network connection as ("0.0.0.0", 0).