MyPortName.cc
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2017 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 #include "squid.h"
10 #include "acl/FilledChecklist.h"
11 #include "acl/MyPortName.h"
12 #include "acl/StringData.h"
13 #include "anyp/PortCfg.h"
14 #include "client_side.h"
15 #include "http/Stream.h"
16 #include "HttpRequest.h"
17 
18 int
20 {
21  if (checklist->conn() != NULL && checklist->conn()->port != NULL)
22  return data->match(checklist->conn()->port->name);
23  if (checklist->request != NULL)
24  return data->match(checklist->request->myportname.termedBuf());
25  return 0;
26 }
27 
virtual bool match(M)=0
virtual int match(ACLData< MatchType > *&, ACLFilledChecklist *) override
Definition: MyPortName.cc:19
ConnStateData * conn() const
The client connection manager.
void const char HLPCB void * data
Definition: stub_helper.cc:16
char const * termedBuf() const
Definition: SquidString.h:90
HttpRequest * request
String myportname
Definition: HttpRequest.h:163
#define NULL
Definition: types.h:166

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors