27 #ifndef SIMPLEUDPSENDER 28 #define SIMPLEUDPSENDER 61 size_t sendBufferSize = DEFAULT_UDP_BUF_SIZE);
75 size_t sendBufferSize = DEFAULT_UDP_BUF_SIZE);
101 bool SendMessage(int32_t messageId,
124 template <
typename T,
typename A = serialize::archives::out_port_bin_t>
128 return m_udpTypedSender.SendMessage<T, A>(message, messageId, responseAddress);
148 #endif // SIMPLEUDPSENDER eUdpOption
The udp options enumeration.
Definition: AsioDefines.h:98
A simplified UDP sender.
Definition: SimpleUdpSender.h:42
messages::MessageBuilder m_messageBuilder
Default message builder object of type core_lib::asio::messages::MessageBuilder.
Definition: SimpleUdpSender.h:139
The core_lib namespace.
Definition: AsioDefines.h:59
bool SendMessage(const T &message, int32_t messageId, const defs::connection_t &responseAddress=defs::NULL_CONNECTION)
Send a full message to the server.
Definition: SimpleUdpSender.h:125
std::pair< std::string, uint16_t > connection_t
Typedef describing a network connection as (address, port).
Definition: AsioDefines.h:152
A generic UDP sender.
Definition: UdpTypedSender.h:55
UdpTypedSender< messages::MessageBuilder > m_udpTypedSender
Our actual typed UDP sender object.
Definition: SimpleUdpSender.h:141
boost_asio::io_context boost_iocontext_t
Boost IO context convenience typedef.
Definition: AsioDefines.h:46
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
File containing UDP typed sender class declaration.
const connection_t NULL_CONNECTION
Constant defining a null network connection as ("0.0.0.0", 0).