sdns
low-level DNS library
Loading...
Searching...
No Matches
Public Attributes | List of all members
sdns_context Struct Reference

#include <sdns.h>

Collaboration diagram for sdns_context:
Collaboration graph
[legend]

Public Attributes

sdns_messagemsg
 This is the DNS packet.
 
char * raw
 The raw bytes we received from socket.
 
uint16_t raw_len
 Length of the raw data we received from socket.
 
char * cursor
 This cursor keeps the position of the pointer in raw data.
 
int err
 This shows the last error code after any operation on the context.
 

Detailed Description

The main structure of library.

This is structure is used to parse a sequence of bytes to a DNS packet and vice versa. raw_len and cursor are used internally and should not be used by callers.


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