PcapPlusPlus  Next
pcpp::MySqlCommandMessage Class Reference

#include <MySqlLayer.h>

Inheritance diagram for pcpp::MySqlCommandMessage:
pcpp::MySqlMessage pcpp::MySqlErrorMessage pcpp::MySqlQueryMessage

Public Member Functions

uint32_t getMessageLength () const override
 Returns the length of the message payload. More...
 
std::vector< uint8_t > getRawPayload () const override
 Returns the raw payload bytes of the message. More...
 
- Public Member Functions inherited from pcpp::MySqlMessage
MySqlMessageType getMessageType () const
 
MySqlMessageOrigin getMessageOrigin () const
 
uint8_t getPacketNumber () const
 Returns the packet number. More...
 
size_t getTotalMessageLength () const
 Returns the total length of the message including the length field. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from pcpp::MySqlMessage
static std::unique_ptr< MySqlMessageparseMySqlMessage (const uint8_t *data, size_t dataLen, MySqlMessageOrigin origin)
 Parse a MySQL message from raw data. More...
 

Detailed Description

Represents a MySQL messages that are commands such as Query (3), StatementPrepare (22), etc. Or that messages that have response code such as Ok (0), Error (0xFF)

Member Function Documentation

◆ getMessageLength()

uint32_t pcpp::MySqlCommandMessage::getMessageLength ( ) const
overridevirtual

Returns the length of the message payload.

Returns
The message length

Reimplemented from pcpp::MySqlMessage.

◆ getRawPayload()

std::vector<uint8_t> pcpp::MySqlCommandMessage::getRawPayload ( ) const
overridevirtual

Returns the raw payload bytes of the message.

Returns
The raw payload bytes of the message

Reimplemented from pcpp::MySqlMessage.