Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
Classes | Enumerations | Functions | Variables
dns.h File Reference
#include <cstddef>
#include <cstdint>
Include dependency graph for dns.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  addr_t
 
struct  dns_opt_t
 

Enumerations

enum class  ParseNameStatus { OK , InputError , OutputBufferError }
 

Functions

ParseNameStatus parse_name (const uint8_t **inpos, const uint8_t *inend, const uint8_t *inbuf, char *buf, size_t bufsize)
 
int write_name (uint8_t **outpos, const uint8_t *outend, const char *name, int offset)
 
int dnsserver (dns_opt_t *opt)
 

Variables

constexpr int MAX_LABEL_LENGTH = 63
 
constexpr int MAX_QUERY_NAME_LENGTH = 255
 
constexpr int MAX_QUERY_NAME_BUFFER_LENGTH = MAX_QUERY_NAME_LENGTH + 1
 

Enumeration Type Documentation

◆ ParseNameStatus

Enumerator
OK 
InputError 
OutputBufferError 

Definition at line 38 of file dns.h.

Function Documentation

◆ dnsserver()

int dnsserver ( dns_opt_t opt)

Definition at line 596 of file dns.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_name()

ParseNameStatus parse_name ( const uint8_t **  inpos,
const uint8_t inend,
const uint8_t inbuf,
char buf,
size_t  bufsize 
)

Definition at line 66 of file dns.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ write_name()

int write_name ( uint8_t **  outpos,
const uint8_t outend,
const char name,
int  offset 
)

Definition at line 132 of file dns.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ MAX_LABEL_LENGTH

constexpr int MAX_LABEL_LENGTH = 63
constexpr

Definition at line 11 of file dns.h.

◆ MAX_QUERY_NAME_BUFFER_LENGTH

constexpr int MAX_QUERY_NAME_BUFFER_LENGTH = MAX_QUERY_NAME_LENGTH + 1
constexpr

Definition at line 14 of file dns.h.

◆ MAX_QUERY_NAME_LENGTH

constexpr int MAX_QUERY_NAME_LENGTH = 255
constexpr

Definition at line 12 of file dns.h.