|
libtins 4.5
|
Struct that represent DNS queries. More...
#include <dns.h>
Public Member Functions | |
| query (std::string nm, QueryType tp, QueryClass cl) | |
| Constructs a DNS query. | |
| query () | |
| Default constructs this Query. | |
| void | dname (const std::string &nm) |
| Setter for the name field. | |
| void | query_type (QueryType tp) |
| Setter for the query type field. | |
| TINS_DEPRECATED (void type(QueryType tp)) | |
| Setter for the query type field. | |
| void | query_class (QueryClass cl) |
| Setter for the query class field. | |
| 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. | |
| QueryClass | query_class () const |
| Getter for the query class field. | |
Struct that represent DNS queries.
|
inline |
Constructs a DNS query.
| nm | The name of the domain being resolved. |
| tp | The query type. |
| cl | The query class. |
Setter for the name field.
| nm | The name to be set. |
|
inline |
Setter for the query class field.
| cl | The query class to be set. |
Setter for the query type field.
| tp | The query type to be set. |
Getter for the query type field.
This method is deprecated. Use query::query_type
|
inline |
Setter for the query type field.
This method is deprecated. Use query::query_type