PortCfg.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2021 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_ANYP_PORTCFG_H
10 #define SQUID_ANYP_PORTCFG_H
11 
12 #include "anyp/forward.h"
13 #include "anyp/ProtocolVersion.h"
14 #include "anyp/TrafficMode.h"
15 #include "base/CodeContext.h"
16 #include "comm/Connection.h"
17 #include "comm/Tcp.h"
18 #include "sbuf/SBuf.h"
19 #include "security/ServerOptions.h"
20 
21 namespace AnyP
22 {
23 
24 class PortCfg : public CodeContext
25 {
26 public:
27  PortCfg();
28  ~PortCfg();
30 
31  /* CodeContext API */
32  virtual ScopedId codeContextGist() const override;
33  virtual std::ostream &detailCodeContext(std::ostream &os) const override;
34 
36 
39  char *name; /* visible name */
40  char *defaultsite; /* default web site */
41 
43 
44  bool allow_direct;
45  bool vhost;
46  bool actAsOrigin;
47  bool ignore_cc;
48 
50 
52 
53  int vport;
55  bool workerQueues;
56 
58 
65 
68 };
69 
70 } // namespace AnyP
71 
74 
77 
78 #if !defined(MAXTCPLISTENPORTS)
79 // Max number of TCP listening ports
80 #define MAXTCPLISTENPORTS 128
81 #endif
82 
83 // TODO: kill this global array. Need to check performance of array vs list though.
84 extern int NHttpSockets;
85 extern int HttpSockets[MAXTCPLISTENPORTS];
86 
87 #endif /* SQUID_ANYP_PORTCFG_H */
88 
Security::ServerOptions secure
TLS configuration options for this listening port.
Definition: PortCfg.h:67
virtual ScopedId codeContextGist() const override
Definition: PortCfg.cc:84
int HttpSockets[MAXTCPLISTENPORTS]
Definition: PortCfg.cc:25
int vport
virtual port support. -1 if dynamic, >0 static
Definition: PortCfg.h:53
bool connection_auth_disabled
Don't support connection oriented auth.
Definition: PortCfg.h:49
bool ignore_cc
Ignore request Cache-Control directives.
Definition: PortCfg.h:47
char * name
Definition: PortCfg.h:39
int disable_pmtu_discovery
Definition: PortCfg.h:54
virtual std::ostream & detailCodeContext(std::ostream &os) const override
appends human-friendly context description line(s) to a cache.log record
Definition: PortCfg.cc:92
AnyP::PortCfgPointer HttpPortList
list of Squid http(s)_port configured
Definition: PortCfg.cc:21
bool actAsOrigin
update replies to conform with RFC 2616
Definition: PortCfg.h:46
Ip::Address s
Definition: PortCfg.h:37
bool workerQueues
whether listening queues should be worker-specific
Definition: PortCfg.h:55
AnyP::PortCfgPointer clone() const
Definition: PortCfg.cc:59
bool allow_direct
Allow direct forwarding in accelerator mode.
Definition: PortCfg.h:44
Definition: forward.h:15
Configuration settings for the TCP keep-alive feature.
Definition: Tcp.h:17
Comm::TcpKeepAlive tcp_keepalive
Definition: PortCfg.h:57
AnyP::ProtocolVersion transport
transport protocol and version received by this port
Definition: PortCfg.h:38
char * defaultsite
Definition: PortCfg.h:40
AnyP::PortCfgPointer FtpPortList
list of Squid ftp_port configured
Definition: PortCfg.cc:22
TLS squid.conf settings for a listening port.
Definition: ServerOptions.h:26
bool vhost
uses host header
Definition: PortCfg.h:45
Comm::ConnectionPointer listenConn
Definition: PortCfg.h:64
PortCfgPointer next
Definition: PortCfg.h:35
int NHttpSockets
Definition: PortCfg.cc:24
#define MAXTCPLISTENPORTS
Definition: PortCfg.h:80
bool ftp_track_dirs
whether transactions should track FTP directories
Definition: PortCfg.h:51
TrafficMode flags
flags indicating what type of traffic to expect via this port.
Definition: PortCfg.h:42

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors