Anope IRC Services  Version 2.0
Data Structures | Public Member Functions | Data Fields
DNS::Question Struct Reference

#include <dns.h>

Inheritance diagram for DNS::Question:
Inheritance graph
Collaboration diagram for DNS::Question:
Collaboration graph

Data Structures

struct  hash

Public Member Functions

 Question ()
 Question (const Anope::string &n, QueryType t, unsigned short c=1)
bool operator== (const Question &other) const

Data Fields

Anope::string name
QueryType type
unsigned short qclass

Detailed Description

Definition at line 74 of file dns.h.

Constructor & Destructor Documentation

◆ Question() [1/2]

DNS::Question::Question ( )

Definition at line 80 of file dns.h.

◆ Question() [2/2]

DNS::Question::Question ( const Anope::string n,
QueryType  t,
unsigned short  c = 1 

Definition at line 81 of file dns.h.

Member Function Documentation

◆ operator==()

bool DNS::Question::operator== ( const Question other) const

Definition at line 82 of file dns.h.

References name, qclass, and type.

Field Documentation

◆ name

Anope::string DNS::Question::name

◆ qclass

unsigned short DNS::Question::qclass

Definition at line 78 of file dns.h.

Referenced by operator==(), Packet::Pack(), and Packet::UnpackQuestion().

◆ type

QueryType DNS::Question::type

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