'ODTONE - Open Dot Twenty One'

PrevUpHomeNext

Struct query

odtone::dns::query

Synopsis

// 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;
};

Description

Struct to store query information.

query public member functions

  1. bool operator==(const struct query & other) const;

    Check if the query is equal to another query.

    Parameters:

    other

    The query to compare with.

    Returns:

    True if they are equal or false otherwise.

query public public data members

  1. void * ctx;

    Context.

  2. std::string name;

    Host name.

  3. uint16 qtype;

    Query type.

  4. uint16 tid;

    UDP DNS transaction ID.

  5. time_t expire;

    Time when this query expire.

  6. message dns_message;

    Response DNS message.

  7. dns_callback_t callback;

    User callback routine.


PrevUpHomeNext