24#ifndef GROUP_SERVICE_MESSAGE_H
25#define GROUP_SERVICE_MESSAGE_H
131 const unsigned char *)
override;
137 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:108
bool set_tag(const char *tag)
Set the tag that identifies the message.
Definition: group_service_message.cc:111
const unsigned char * m_data_pointer
A pointer to the message data, memory ownership belongs to the message creator.
Definition: group_service_message.h:142
size_t m_data_pointer_length
Definition: group_service_message.h:143
std::string m_tag
The message identifier.
Definition: group_service_message.h:135
enum_payload_item_type
Definition: group_service_message.h:36
@ PIT_MAX
Definition: group_service_message.h:47
@ PIT_DATA
Definition: group_service_message.h:44
@ 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:76
~Group_service_message() override
Group service message destructor.
std::vector< uchar, Malloc_allocator< uchar > > m_data
The message data.
Definition: group_service_message.h:137
size_t get_tag_length()
Return the length of the tag that identifies the message.
Definition: group_service_message.h:115
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:46
Group_service_message()
Group service message constructor.
Definition: group_service_message.cc:28
size_t get_data_length()
Return the length of the data on message.
Definition: group_service_message.cc:66
void decode_payload(const unsigned char *buffer, const unsigned char *) override
Group service message decoding method.
Definition: group_service_message.cc:94
const uchar * get_data()
Return data on message.
Definition: group_service_message.cc:56
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
mutable_buffer buffer(void *p, size_t n) noexcept
Definition: buffer.h:420