odtone::dns::query
// In header: </home/carlos/Projectos/odtone/inc/odtone/net/dns/resolver.hpp> struct query { // public member functions bool operator==(const struct query &) const; // public data members void * ctx; std::string name; uint16 qtype; uint16 tid; time_t expire; message dns_message; dns_callback_t callback; };
Struct to store query information.
query
public member functionsbool operator==(const struct query & other) const;
Check if the query is equal to another query.
Parameters: |
|
||
Returns: |
True if they are equal or false otherwise. |
query
public
public data membersvoid * ctx;
Context.
std::string name;
Host name.
uint16 qtype;
Query type.
uint16 tid;
UDP DNS transaction ID.
time_t expire;
Time when this query expire.
message dns_message;
Response DNS message.
dns_callback_t callback;
User callback routine.