Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 79 lines (63 sloc) 2.304 kb
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2
3 /* Cherokee
4 *
5 * Authors:
6 * Alvaro Lopez Ortega <alvaro@alobbs.com>
7 *
920e20b @alobbs Happy new year!
alobbs authored
8 * Copyright (C) 2001-2011 Alvaro Lopez Ortega
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored
9 *
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of version 2 of the GNU General Public
12 * License as published by the Free Software Foundation.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
2c39092 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2660 5dc97367-9…
alobbs authored
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22 * 02110-1301, USA.
72f6444 @alobbs Clean up: Trims trailing spaces.
alobbs authored
23 */
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored
24
25 #ifndef CHEROKEE_HANDLER_FCGI_H
26 #define CHEROKEE_HANDLER_FCGI_H
27
28 #include "common-internal.h"
29
30 #include "handler.h"
31 #include "buffer.h"
b69d2e0 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@476 5dc97367-97…
alobbs authored
32 #include "plugin_loader.h"
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored
33 #include "socket.h"
34 #include "handler_cgi_base.h"
7b0e48a @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@387 5dc97367-97…
alobbs authored
35 #include "balancer.h"
b8698b6 @alobbs Fixes a bunch of compilation warnings
alobbs authored
36 #include "plugin_loader.h"
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored
37
38 typedef enum {
475ecb2 @alobbs The POST management code has been rewritten from scratch. The new
alobbs authored
39 fcgi_post_phase_read,
40 fcgi_post_phase_write
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored
41 } cherokee_handler_fcgi_post_t;
42
b69d2e0 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@476 5dc97367-97…
alobbs authored
43 /* Data structure
44 */
3509796 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@282 5dc97367-97…
alobbs authored
45 typedef struct {
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored
46 cherokee_handler_cgi_base_t base;
a18b345 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@1708 5dc97367-9…
alobbs authored
47 cherokee_source_t *src_ref;
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored
48 cherokee_socket_t socket;
49 cherokee_handler_fcgi_post_t post_phase;
50 cherokee_buffer_t write_buffer;
51 } cherokee_handler_fcgi_t;
52
b69d2e0 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@476 5dc97367-97…
alobbs authored
53 #define HDL_FCGI(x) ((cherokee_handler_fcgi_t *)(x))
54
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored
55
b69d2e0 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@476 5dc97367-97…
alobbs authored
56 /* Properties
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored
57 */
b69d2e0 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@476 5dc97367-97…
alobbs authored
58 typedef struct {
59 cherokee_handler_cgi_base_t base;
72f6444 @alobbs Clean up: Trims trailing spaces.
alobbs authored
60 cherokee_list_t server_list;
b69d2e0 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@476 5dc97367-97…
alobbs authored
61 cherokee_balancer_t *balancer;
62 } cherokee_handler_fcgi_props_t;
63
64 #define PROP_FCGI(x) ((cherokee_handler_fcgi_props_t *)(x))
65 #define HANDLER_FCGI_PROPS(x) (PROP_FCGI (MODULE(x)->props))
66
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored
67
475ecb2 @alobbs The POST management code has been rewritten from scratch. The new
alobbs authored
68 /* Methods
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored
69 */
b8698b6 @alobbs Fixes a bunch of compilation warnings
alobbs authored
70 void PLUGIN_INIT_NAME(fcgi) (cherokee_plugin_loader_t *loader);
71
7b0e48a @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@387 5dc97367-97…
alobbs authored
72 ret_t cherokee_handler_fcgi_new (cherokee_handler_t **hdl, void *cnt, cherokee_module_props_t *props);
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored
73 ret_t cherokee_handler_fcgi_free (cherokee_handler_fcgi_t *hdl);
475ecb2 @alobbs The POST management code has been rewritten from scratch. The new
alobbs authored
74
75 ret_t cherokee_handler_fcgi_init (cherokee_handler_fcgi_t *hdl);
76 ret_t cherokee_handler_fcgi_read_post (cherokee_handler_fcgi_t *hdl);
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored
77
78 #endif /* CHEROKEE_HANDLER_CGI_H */
Something went wrong with that request. Please try again.