PortCfg.h
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 #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 "comm/Connection.h"
16 #include "sbuf/SBuf.h"
17 #include "security/ServerOptions.h"
18 
19 namespace AnyP
20 {
21 
22 class PortCfg : public RefCountable
23 {
24 public:
25  PortCfg();
26  ~PortCfg();
28 
30 
33  char *name; /* visible name */
34  char *defaultsite; /* default web site */
35 
37 
38  bool allow_direct;
39  bool vhost;
40  bool actAsOrigin;
41  bool ignore_cc;
42 
44 
46 
47  int vport;
49 
50  struct {
51  unsigned int idle;
52  unsigned int interval;
53  unsigned int timeout;
54  bool enabled;
55  } tcp_keepalive;
56 
63 
66 };
67 
68 } // namespace AnyP
69 
72 
75 
76 #if !defined(MAXTCPLISTENPORTS)
77 // Max number of TCP listening ports
78 #define MAXTCPLISTENPORTS 128
79 #endif
80 
81 // TODO: kill this global array. Need to check performance of array vs list though.
82 extern int NHttpSockets;
83 extern int HttpSockets[MAXTCPLISTENPORTS];
84 
85 #endif /* SQUID_ANYP_PORTCFG_H */
86 
Ip::Address s
Definition: PortCfg.h:31
bool vhost
uses host header
Definition: PortCfg.h:39
AnyP::PortCfgPointer FtpPortList
list of Squid ftp_port configured
Definition: PortCfg.cc:22
AnyP::ProtocolVersion transport
transport protocol and version received by this port
Definition: PortCfg.h:32
unsigned int interval
Definition: PortCfg.h:52
int NHttpSockets
Definition: PortCfg.cc:24
Security::ServerOptions secure
TLS configuration options for this listening port.
Definition: PortCfg.h:65
unsigned int idle
Definition: PortCfg.h:51
TrafficMode flags
flags indicating what type of traffic to expect via this port.
Definition: PortCfg.h:36
bool connection_auth_disabled
Don't support connection oriented auth.
Definition: PortCfg.h:43
Comm::ConnectionPointer listenConn
Definition: PortCfg.h:62
PortCfgPointer next
Definition: PortCfg.h:29
#define MAXTCPLISTENPORTS
Definition: PortCfg.h:78
AnyP::PortCfgPointer HttpPortList
list of Squid http(s)_port configured
Definition: PortCfg.cc:21
bool ftp_track_dirs
whether transactions should track FTP directories
Definition: PortCfg.h:45
int disable_pmtu_discovery
Definition: PortCfg.h:48
int HttpSockets[MAXTCPLISTENPORTS]
Definition: PortCfg.cc:25
bool ignore_cc
Ignore request Cache-Control directives.
Definition: PortCfg.h:41
bool actAsOrigin
update replies to conform with RFC 2616
Definition: PortCfg.h:40
TLS squid.conf settings for a listening port.
Definition: ServerOptions.h:19
struct AnyP::PortCfg::@27 tcp_keepalive
bool allow_direct
Allow direct forwarding in accelerator mode.
Definition: PortCfg.h:38
char * name
Definition: PortCfg.h:33
AnyP::PortCfgPointer clone() const
Definition: PortCfg.cc:59
int vport
virtual port support. -1 if dynamic, >0 static
Definition: PortCfg.h:47
bool enabled
Definition: PortCfg.h:54
unsigned int timeout
Definition: PortCfg.h:53
char * defaultsite
Definition: PortCfg.h:34

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors