NetSim 1.0.0
An educational network simulation software for students
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
NetSim::DNS Class Reference

Provides utility methods to initialize DNS request and response data in packages. More...

#include <dns.h>

Static Public Member Functions

static void initDNSRequest (Package &data, const QList< DNSEntry > queries)
 Initializes a DNS request package with the given queries.
 
static void initDNSResponse (Package &data, const QList< DNSEntry > queries, const QList< DNSEntry > answers, bool nxDomain)
 Initializes a DNS response package with the given queries and answers.
 

Detailed Description

Provides utility methods to initialize DNS request and response data in packages.

Member Function Documentation

◆ initDNSRequest()

void DNS::initDNSRequest ( Package data,
const QList< DNSEntry queries 
)
static

Initializes a DNS request package with the given queries.

Parameters
dataThe package to which the DNS request data will be added.
queriesA list of DNS queries to be added to the request.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ initDNSResponse()

void DNS::initDNSResponse ( Package data,
const QList< DNSEntry queries,
const QList< DNSEntry answers,
bool  nxDomain 
)
static

Initializes a DNS response package with the given queries and answers.

Parameters
dataThe package to which the DNS response data will be added.
queriesA list of original DNS queries.
answersA list of DNS answers for the corresponding queries.
nxDomainA flag to indicate if the domain in query does not exist.
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: