]>
Commit | Line | Data |
---|---|---|
bbc27441 | 1 | /* |
ef57eb7b | 2 | * Copyright (C) 1996-2016 The Squid Software Foundation and contributors |
bbc27441 AJ |
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 | ||
92ae4c86 AR |
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 | ||
aea65fec AR |
16 | class ConnStateData; |
17 | ||
27c841f6 AR |
18 | namespace Http |
19 | { | |
92ae4c86 | 20 | |
055f8d59 AJ |
21 | namespace One |
22 | { | |
23 | class Server; | |
24 | } // namespace One | |
25 | ||
92ae4c86 AR |
26 | /// create a new HTTP connection handler; never returns NULL |
27 | ConnStateData *NewServer(MasterXactionPointer &xact); | |
28 | ||
29 | } // namespace Http | |
30 | ||
27c841f6 AR |
31 | namespace Https |
32 | { | |
92ae4c86 AR |
33 | |
34 | /// create a new HTTPS connection handler; never returns NULL | |
35 | ConnStateData *NewServer(MasterXactionPointer &xact); | |
36 | ||
37 | } // namespace Https | |
38 | ||
27c841f6 AR |
39 | namespace Ftp |
40 | { | |
92ae4c86 AR |
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 */ | |
f53969cc | 50 |