10using std::stringstream;
82 void generate(
char message[512],
size_t& bytes);
const uint32_t getMessageId()
void generate(char message[512], size_t &bytes)
Generate datagram.
void retry()
Mark message to be resend with increased retry count.
~UDPClientMessage()
Destructor.
const uint8_t getRetryCount()
const uint32_t getClientId()
stringstream * getFrame()
@ MESSAGETYPE_ACKNOWLEDGEMENT
static UDPClientMessage * parse(const char message[512], const size_t bytes)
Parse.
UDPClientMessage(const MessageType messageType, const uint32_t clientId, const uint32_t messageId, const uint8_t retries, stringstream *frame)
Public constructor.
const MessageType getMessageType()
const int64_t getRetryTime()