Made to Order Software Corporation Logo

LLChatLib: LLQueryResponder Class Reference

LLQueryResponder Class Reference

Base class for friendly handling of DNS query responses. More...

#include <llares.h>

Inheritance diagram for LLQueryResponder:
Collaboration diagram for LLQueryResponder:

List of all members.

Public Member Functions

const dns_rrs_tadditional () const
const dns_rrs_tanswers () const
const dns_rrs_tauthorities () const
const std::string & query () const
int result () const
bool valid () const

Protected Member Functions

int parseRR (const char *buf, size_t len, const char *&pos, LLPointer< LLDnsRecord > &r)
int parseSection (const char *buf, size_t len, size_t count, const char *&pos, dns_rrs_t &rrs)

Detailed Description

Base class for friendly handling of DNS query responses.

This class parses a DNS response and represents it in a friendly manner.

See also:
LLDnsRecord
LLARecord
LLNsRecord
LLCnameRecord
LLPtrRecord
LLAaaaRecord
LLSrvRecord

Member Function Documentation

const dns_rrs_t& LLQueryResponder::additional (  )  const [inline]

Return the contents of the "additional records" section of the response.

const dns_rrs_t& LLQueryResponder::answers (  )  const [inline]

Return the contents of the "answers" section of the response.

const dns_rrs_t& LLQueryResponder::authorities (  )  const [inline]

Return the contents of the "authorities" section of the response.

int LLQueryResponder::parseRR ( const char *  buf,
size_t  len,
const char *&  pos,
LLPointer< LLDnsRecord > &  r 
) [protected]

Parse a single RR.

Here is the call graph for this function:

int LLQueryResponder::parseSection ( const char *  buf,
size_t  len,
size_t  count,
const char *&  pos,
dns_rrs_t rrs 
) [protected]

Parse one section of a response.

Here is the call graph for this function:

const std::string& LLQueryResponder::query (  )  const [inline]

Return the query embedded in the response.

int LLQueryResponder::result (  )  const [inline]

The more detailed result of parsing the response.

bool LLQueryResponder::valid (  )  const [inline]

Indicate whether the response could be parsed successfully.


The documentation for this class was generated from the following files:
  • /home/doug/src/oss/slitechat/trunk/LLChatLib/llmessage/llares.h
  • /home/doug/src/oss/slitechat/trunk/LLChatLib/llmessage/llares.cpp
Generated on Thu Sep 23 17:18:43 2010 for LLChatLib by  doxygen 1.6.3