Fixing bug 514988 - unable to restart JunkBuster
[privoxy.git] / gateway.h
1 #ifndef GATEWAY_H_INCLUDED
2 #define GATEWAY_H_INCLUDED
3 #define GATEWAY_H_VERSION "$Id: gateway.h,v 1.2 2001/06/07 23:12:14 jongfoster Exp $"
4 /*********************************************************************
5  *
6  * File        :  $Source: /cvsroot/ijbswa/current/gateway.h,v $
7  *
8  * Purpose     :  Contains functions to connect to a server, possibly
9  *                using a "gateway" (i.e. HTTP proxy and/or SOCKS4
10  *                proxy).  Also contains the list of gateway types.
11  *
12  * Copyright   :  Written by and Copyright (C) 2001 the SourceForge
13  *                IJBSWA team.  http://ijbswa.sourceforge.net
14  *
15  *                Based on the Internet Junkbuster originally written
16  *                by and Copyright (C) 1997 Anonymous Coders and 
17  *                Junkbusters Corporation.  http://www.junkbusters.com
18  *
19  *                This program is free software; you can redistribute it 
20  *                and/or modify it under the terms of the GNU General
21  *                Public License as published by the Free Software
22  *                Foundation; either version 2 of the License, or (at
23  *                your option) any later version.
24  *
25  *                This program is distributed in the hope that it will
26  *                be useful, but WITHOUT ANY WARRANTY; without even the
27  *                implied warranty of MERCHANTABILITY or FITNESS FOR A
28  *                PARTICULAR PURPOSE.  See the GNU General Public
29  *                License for more details.
30  *
31  *                The GNU General Public License should be included with
32  *                this file.  If not, you can view it at
33  *                http://www.gnu.org/copyleft/gpl.html
34  *                or write to the Free Software Foundation, Inc., 59
35  *                Temple Place - Suite 330, Boston, MA  02111-1307, USA.
36  *
37  * Revisions   :
38  *    $Log: gateway.h,v $
39  *    Revision 1.2  2001/06/07 23:12:14  jongfoster
40  *    Removing gateways[] list - no longer used.
41  *    Replacing function pointer in struct gateway with a directly
42  *    called function forwarded_connect(), which can do the common
43  *    task of deciding whether to connect to the web server or HTTP
44  *    proxy.
45  *    Replacing struct gateway with struct forward_spec
46  *
47  *    Revision 1.1.1.1  2001/05/15 13:58:54  oes
48  *    Initial import of version 2.9.3 source tree
49  *
50  *
51  *********************************************************************/
52 \f
53
54 #ifdef __cplusplus
55 extern "C" {
56 #endif
57
58 struct forward_spec;
59 struct http_request;
60 struct client_state;
61
62 extern int forwarded_connect(const struct forward_spec * fwd, 
63                              struct http_request *http, 
64                              struct client_state *csp);
65
66 /* Revision control strings from this header and associated .c file */
67 extern const char gateway_rcs[];
68 extern const char gateway_h_rcs[];
69
70 #ifdef __cplusplus
71 } /* extern "C" */
72 #endif
73
74 #endif /* ndef GATEWAY_H_INCLUDED */
75
76 /*
77   Local Variables:
78   tab-width: 3
79   end:
80 */