'ODTONE - Open Dot Twenty One'

PrevUpHomeNext

Struct callback_info

odtone::dns::callback_info

Synopsis

// In header: </home/carlos/Projectos/odtone/inc/odtone/net/dns/resolver.hpp>


struct callback_info {

  // public data members
  void * context;
  std::string name;
  enum dns_query_type query_type;
  enum dns_status error;
  message dns_message;
};

Description

Structure that is passed to the applciation callback, which as several information about the query performed.

callback_info public public data members

  1. void * context;

    Context.

  2. std::string name;

    Requested host name.

  3. enum dns_query_type query_type;

    Query type.

  4. enum dns_status error;

    Error type.

  5. message dns_message;

    Response DNS message.


PrevUpHomeNext