|
PcapPlusPlus
Next
|
#include <PostgresLayer.h>
Public Member Functions | |
| PostgresMessageType | getMessageType () const |
| PostgresMessageOrigin | getMessageOrigin () const |
| uint32_t | getMessageLength () const |
| Returns the length of the message payload. More... | |
| size_t | getTotalMessageLength () const |
| Returns the total length of the message including the length field. More... | |
| std::vector< uint8_t > | getRawPayload () const |
| Returns the raw payload bytes of the message. More... | |
Static Public Member Functions | |
| static std::unique_ptr< PostgresMessage > | parsePostgresBackendMessage (const uint8_t *data, size_t dataLen) |
| Parse a PostgreSQL backend message from raw data. More... | |
| static std::unique_ptr< PostgresMessage > | parsePostgresFrontendMessage (const uint8_t *data, size_t dataLen) |
| Parse a PostgreSQL frontend message from raw data. More... | |
Represents a PostgreSQL message (base class)
| uint32_t pcpp::PostgresMessage::getMessageLength | ( | ) | const |
Returns the length of the message payload.
|
inline |
|
inline |
| std::vector<uint8_t> pcpp::PostgresMessage::getRawPayload | ( | ) | const |
Returns the raw payload bytes of the message.
|
inline |
Returns the total length of the message including the length field.
|
static |
Parse a PostgreSQL backend message from raw data.
| [in] | data | A pointer to the raw data |
| [in] | dataLen | Size of the data in bytes |
|
static |
Parse a PostgreSQL frontend message from raw data.
| [in] | data | A pointer to the raw data |
| [in] | dataLen | Size of the data in bytes |