E-MailRelay
Static Public Member Functions | List of all members
GNet::DnsMessageNameParser Class Reference

An implementation class used by GNet::DnsMessage to parse compressed domain names. More...

#include <gdnsmessage.h>

Static Public Member Functions

static unsigned int size (const DnsMessage &msg, unsigned int)
 Returns the size of the compressed name at the given offset. More...
 
static std::string read (const DnsMessage &msg, unsigned int)
 Returns the decompressed domain name at the given offset, made up of the labels with dots inbetween. More...
 

Detailed Description

An implementation class used by GNet::DnsMessage to parse compressed domain names.

Definition at line 340 of file gdnsmessage.h.

Member Function Documentation

◆ read()

std::string GNet::DnsMessageNameParser::read ( const DnsMessage msg,
unsigned int  offset_in 
)
static

Returns the decompressed domain name at the given offset, made up of the labels with dots inbetween.

Definition at line 364 of file gdnsmessage.cpp.

◆ size()

unsigned int GNet::DnsMessageNameParser::size ( const DnsMessage msg,
unsigned int  offset_in 
)
static

Returns the size of the compressed name at the given offset.

Definition at line 346 of file gdnsmessage.cpp.


The documentation for this class was generated from the following files: