DestinationDomain.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2022 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_ACLDESTINATIONDOMAIN_H
10#define SQUID_ACLDESTINATIONDOMAIN_H
11
12#include "acl/Acl.h"
13#include "acl/Checklist.h"
14#include "acl/Data.h"
15#include "acl/Strategised.h"
16#include "dns/forward.h"
17
19class ACLDestinationDomainStrategy : public ACLStrategy<char const *>
20{
21
22public:
23 /* ACLStrategy API */
24 virtual int match (ACLData<MatchType> * &, ACLFilledChecklist *);
25 virtual bool requiresRequest() const {return true;}
26 virtual const Acl::Options &options();
27
28private:
30};
31
34{
35
36public:
38 virtual void checkForAsync(ACLChecklist *)const;
39
40private:
42 static void LookupDone(const char *, const Dns::LookupDetails &, void *);
43};
44
45#endif /* SQUID_ACLDESTINATIONDOMAIN_H */
46
virtual bool requiresRequest() const
Acl::BooleanOptionValue lookupBanned
Are DNS lookups allowed?
virtual const Acl::Options & options()
virtual int match(ACLData< MatchType > *&, ACLFilledChecklist *)
A matching algorithm.
Definition: Strategy.h:22
virtual void checkForAsync(ACLChecklist *) const
static DestinationDomainLookup instance_
static void LookupDone(const char *, const Dns::LookupDetails &, void *)
static DestinationDomainLookup * Instance()
encapsulates DNS lookup results
Definition: LookupDetails.h:21
std::vector< const Option * > Options
Definition: Options.h:214
OptionValue< bool > BooleanOptionValue
Definition: Options.h:200

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors