forward.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
3  *
4  * Squid software is distributed under GPLv2+ license and includes
5  * contributions from numerous individuals and organizations.
6  * Please see the COPYING and CONTRIBUTORS files for details.
7  */
8 
9 #ifndef SQUID_SRC_DNS_FORWARD_H
10 #define SQUID_SRC_DNS_FORWARD_H
11 
12 #include "ip/forward.h"
13 #include "sbuf/forward.h"
14 
15 class rfc1035_rr;
16 
17 typedef void IDNSCB(void *cbdata, const rfc1035_rr *answer, const int recordsInAnswer, const char *error, bool lastAnswer);
18 
20 namespace Dns
21 {
22 
23 class LookupDetails;
24 
25 void Init(void);
26 
41 using DomainName = SBuf;
42 
43 } // namespace Dns
44 
45 // internal DNS client API
46 void idnsALookup(const char *, IDNSCB *, void *);
47 void idnsPTRLookup(const Ip::Address &, IDNSCB *, void *);
48 
49 #endif /* SQUID_SRC_DNS_FORWARD_H */
50 
void idnsPTRLookup(const Ip::Address &, IDNSCB *, void *)
void Init(void)
void error(char *format,...)
Definition: SBuf.h:93
Definition: cbdata.cc:37
generic DNS API
Definition: forward.h:20
encapsulates DNS lookup results
Definition: LookupDetails.h:22
void IDNSCB(void *cbdata, const rfc1035_rr *answer, const int recordsInAnswer, const char *error, bool lastAnswer)
Definition: forward.h:17
void idnsALookup(const char *, IDNSCB *, void *)

 

Introduction

Documentation

Support

Miscellaneous