GNUnet 0.22.2
gnunet_dns_service.h File Reference

API to access the DNS service. More...

#include "gnunet_util_lib.h"
Include dependency graph for gnunet_dns_service.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef void(* GNUNET_DNS_RequestHandler) (void *cls, struct GNUNET_DNS_RequestHandle *rh, size_t request_length, const char *request)
 Signature of a function that is called whenever the DNS service encounters a DNS request and needs to do something with it. More...
 

Enumerations

enum  GNUNET_DNS_Flags {
  GNUNET_DNS_FLAG_NEVER = 0 , GNUNET_DNS_FLAG_REQUEST_MONITOR = 1 , GNUNET_DNS_FLAG_PRE_RESOLUTION = 2 , GNUNET_DNS_FLAG_POST_RESOLUTION = 4 ,
  GNUNET_DNS_FLAG_RESPONSE_MONITOR = 8
}
 Flags that specify when to call the client's handler. More...
 

Functions

void GNUNET_DNS_request_forward (struct GNUNET_DNS_RequestHandle *rh)
 If a GNUNET_DNS_RequestHandler calls this function, the client has no desire to interfere with the request and it should continue to be processed normally. More...
 
void GNUNET_DNS_request_drop (struct GNUNET_DNS_RequestHandle *rh)
 If a GNUNET_DNS_RequestHandler calls this function, the request is to be dropped and no response should be generated. More...
 
void GNUNET_DNS_request_answer (struct GNUNET_DNS_RequestHandle *rh, uint16_t reply_length, const char *reply)
 If a GNUNET_DNS_RequestHandler calls this function, the request is supposed to be answered with the data provided to this call (with the modifications the function might have made). More...
 
struct GNUNET_DNS_HandleGNUNET_DNS_connect (const struct GNUNET_CONFIGURATION_Handle *cfg, enum GNUNET_DNS_Flags flags, GNUNET_DNS_RequestHandler rh, void *rh_cls)
 Connect to the service-dns. More...
 
void GNUNET_DNS_disconnect (struct GNUNET_DNS_Handle *dh)
 Disconnect from the DNS service. More...
 

Detailed Description

API to access the DNS service.

Definition in file gnunet_dns_service.h.