]> git.ipfire.org Git - thirdparty/squid.git/blob - src/servers/forward.h
Source Format Enforcement (#1234)
[thirdparty/squid.git] / src / servers / forward.h
1 /*
2 * Copyright (C) 1996-2023 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_SERVERS_FORWARD_H
10 #define SQUID_SERVERS_FORWARD_H
11
12 class MasterXaction;
13 template <class C> class RefCount;
14 typedef RefCount<MasterXaction> MasterXactionPointer;
15
16 class ConnStateData;
17
18 namespace Http
19 {
20
21 namespace One
22 {
23 class Server;
24 } // namespace One
25
26 /// create a new HTTP connection handler; never returns NULL
27 ConnStateData *NewServer(const MasterXaction::Pointer &xact);
28
29 } // namespace Http
30
31 namespace Https
32 {
33
34 /// create a new HTTPS connection handler; never returns NULL
35 ConnStateData *NewServer(const MasterXaction::Pointer &xact);
36
37 } // namespace Https
38
39 namespace Ftp
40 {
41
42 /// accept connections on all configured ftp_ports
43 void StartListening();
44 /// reject new connections to any configured ftp_port
45 void StopListening();
46
47 } // namespace Ftp
48
49 #endif /* SQUID_SERVERS_FORWARD_H */
50