PcapPlusPlus  Next
pcpp::PostgresParameterStatus Class Reference

#include <PostgresLayer.h>

Inheritance diagram for pcpp::PostgresParameterStatus:
pcpp::PostgresMessage

Public Member Functions

 PostgresParameterStatus (const uint8_t *data, size_t dataLen)
 
std::string getParameterName () const
 
std::string getParameterValue () const
 
- Public Member Functions inherited from pcpp::PostgresMessage
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...
 

Additional Inherited Members

- Static Public Member Functions inherited from pcpp::PostgresMessage
static std::unique_ptr< PostgresMessageparsePostgresBackendMessage (const uint8_t *data, size_t dataLen)
 Parse a PostgreSQL backend message from raw data. More...
 
static std::unique_ptr< PostgresMessageparsePostgresFrontendMessage (const uint8_t *data, size_t dataLen)
 Parse a PostgreSQL frontend message from raw data. More...
 

Detailed Description

Represents a PostgreSQL ParameterStatus message

Constructor & Destructor Documentation

◆ PostgresParameterStatus()

pcpp::PostgresParameterStatus::PostgresParameterStatus ( const uint8_t *  data,
size_t  dataLen 
)
inline

A constructor that creates the layer from an existing packet raw data

Parameters
[in]dataA pointer to the raw data
[in]dataLenSize of the data in bytes

Member Function Documentation

◆ getParameterName()

std::string pcpp::PostgresParameterStatus::getParameterName ( ) const
Returns
The parameter name

◆ getParameterValue()

std::string pcpp::PostgresParameterStatus::getParameterValue ( ) const
Returns
The parameter value