libtins  4.0
Public Member Functions | List of all members
Tins::DNS::query Class Reference

Struct that represent DNS queries. More...

#include <dns.h>

Public Member Functions

 query (std::string nm, QueryType tp, QueryClass cl)
 Constructs a DNS query. More...
 
 query ()
 Default constructs this Query.
 
void dname (const std::string &nm)
 Setter for the name field. More...
 
void query_type (QueryType tp)
 Setter for the query type field. More...
 
 TINS_DEPRECATED (void type(QueryType tp))
 Setter for the query type field. More...
 
void query_class (QueryClass cl)
 Setter for the query class field. More...
 
const std::string & dname () const
 Getter for the name field.
 
QueryType query_type () const
 Getter for the query type field.
 
 TINS_DEPRECATED (QueryType type() const)
 Getter for the query type field. More...
 
QueryClass query_class () const
 Getter for the query class field.
 

Detailed Description

Struct that represent DNS queries.

Constructor & Destructor Documentation

Tins::DNS::query::query ( std::string  nm,
QueryType  tp,
QueryClass  cl 
)
inline

Constructs a DNS query.

Parameters
nmThe name of the domain being resolved.
tpThe query type.
clThe query class.

Member Function Documentation

void Tins::DNS::query::dname ( const std::string &  nm)
inline

Setter for the name field.

Parameters
nmThe name to be set.
void Tins::DNS::query::query_class ( QueryClass  cl)
inline

Setter for the query class field.

Parameters
clThe query class to be set.
void Tins::DNS::query::query_type ( QueryType  tp)
inline

Setter for the query type field.

Parameters
tpThe query type to be set.
Tins::DNS::query::TINS_DEPRECATED ( void   typeQueryType tp)
inline

Setter for the query type field.

This method is deprecated. Use query::query_type

Deprecated:
See also
query::query_type
Tins::DNS::query::TINS_DEPRECATED ( QueryType type()  const)
inline

Getter for the query type field.

This method is deprecated. Use query::query_type

Deprecated:
See also
query::query_type

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