PcapPlusPlus  Next
pcpp::PostgresRowDescriptionMessage Class Reference

#include <PostgresLayer.h>

Inheritance diagram for pcpp::PostgresRowDescriptionMessage:
pcpp::PostgresMessage

Classes

struct  PostgresColumnInfo
 

Public Types

enum class  PostgresColumnFormat { Text = 0 , Binary = 1 , Unknown = 2 }
 

Public Member Functions

 PostgresRowDescriptionMessage (const uint8_t *data, size_t dataLen)
 
std::vector< PostgresColumnInfogetColumnInfos () 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 RowDescription message (backend)

Member Enumeration Documentation

◆ PostgresColumnFormat

Represents the format of a column in a PostgreSQL RowDescription message. PostgreSQL supports two formats: text (0) and binary (1).

Enumerator
Text 

Text format (format code 0)

Binary 

Binary format (format code 1)

Unknown 

Unknown format (format code >= 2)

Constructor & Destructor Documentation

◆ PostgresRowDescriptionMessage()

pcpp::PostgresRowDescriptionMessage::PostgresRowDescriptionMessage ( 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

◆ getColumnInfos()

std::vector<PostgresColumnInfo> pcpp::PostgresRowDescriptionMessage::getColumnInfos ( ) const
Returns
Vector of column metadata