SourceDomain.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2019 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_ACLSOURCEDOMAIN_H
10 #define SQUID_ACLSOURCEDOMAIN_H
11 #include "acl/Acl.h"
12 #include "acl/Checklist.h"
13 #include "acl/Data.h"
14 #include "acl/Strategy.h"
15 #include "dns/forward.h"
16 
17 class ACLSourceDomainStrategy : public ACLStrategy<char const *>
18 {
19 
20 public:
21  virtual int match (ACLData<MatchType> * &, ACLFilledChecklist *) override;
22 };
23 
25 {
26 
27 public:
28  static SourceDomainLookup *Instance();
29  virtual void checkForAsync(ACLChecklist *)const;
30 
31 private:
33  static void LookupDone(const char *, const Dns::LookupDetails &, void *);
34 };
35 
36 #endif /* SQUID_ACLSOURCEDOMAIN_H */
37 
static SourceDomainLookup instance_
Definition: SourceDomain.h:32
encapsulates DNS lookup results
Definition: LookupDetails.h:20
static CodeContext::Pointer & Instance()
guarantees the forever existence of the pointer, starting from the first use
Definition: CodeContext.cc:26
A matching algorithm.
Definition: Strategy.h:21
virtual int match(ACLData< MatchType > *&, ACLFilledChecklist *) override
Definition: SourceDomain.cc:44

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors