24#ifndef GROUP_SERVICE_MESSAGE_H
25#define GROUP_SERVICE_MESSAGE_H
147 const unsigned char *)
override;
153 std::vector<uchar, Malloc_allocator<uchar>>
m_data;
Definition: group_service_message.h:34
const std::string & get_tag()
Return the tag that identifies the message.
Definition: group_service_message.h:112
bool set_tag(const char *tag)
Set the tag that identifies the message.
Definition: group_service_message.cc:115
const unsigned char * m_data_pointer
A pointer to the message data, memory ownership belongs to the message creator.
Definition: group_service_message.h:158
size_t m_data_pointer_length
Definition: group_service_message.h:159
std::string m_tag
The message identifier.
Definition: group_service_message.h:151
enum_payload_item_type
Definition: group_service_message.h:36
@ PIT_MAX
Definition: group_service_message.h:51
@ PIT_DATA
Definition: group_service_message.h:44
@ PIT_SENT_TIMESTAMP
Definition: group_service_message.h:47
@ PIT_UNKNOWN
Definition: group_service_message.h:38
@ PIT_TAG
Definition: group_service_message.h:41
void encode_payload(std::vector< unsigned char > *buffer) const override
Encodes the group service message contents for transmission.
Definition: group_service_message.cc:77
~Group_service_message() override
Group service message destructor.
std::vector< uchar, Malloc_allocator< uchar > > m_data
The message data.
Definition: group_service_message.h:153
size_t get_tag_length()
Return the length of the tag that identifies the message.
Definition: group_service_message.h:119
bool set_data(const uchar *data, const size_t data_length)
Set data to message that will be transmitted to group members.
Definition: group_service_message.cc:47
Group_service_message()
Group service message constructor.
Definition: group_service_message.cc:29
size_t get_data_length()
Return the length of the data on message.
Definition: group_service_message.cc:67
void decode_payload(const unsigned char *buffer, const unsigned char *) override
Group service message decoding method.
Definition: group_service_message.cc:98
static uint64_t get_sent_timestamp(const unsigned char *buffer, size_t length)
Return the time at which the message contained in the buffer was sent.
Definition: group_service_message.cc:125
const uchar * get_data()
Return data on message.
Definition: group_service_message.cc:57
This is the base GCS plugin message.
Definition: gcs_plugin_messages.h:64
unsigned char uchar
Definition: my_inttypes.h:52
Definition: buf0block_hint.cc:30
bool length(const dd::Spatial_reference_system *srs, const Geometry *g1, double *length, bool *null) noexcept
Computes the length of linestrings and multilinestrings.
Definition: length.cc:76
mutable_buffer buffer(void *p, size_t n) noexcept
Definition: buffer.h:418