Skip to content
Newer
Older
100644 76 lines (60 sloc) 2.17 KB
dd0a852 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2652 5dc97367-9…
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
dd0a852 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2652 5dc97367-9…
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 */
dd0a852 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2652 5dc97367-9…
alobbs authored
24
25 #ifndef CHEROKEE_BIND_H
26 #define CHEROKEE_BIND_H
27
28 #include "common-internal.h"
29 #include "list.h"
30 #include "buffer.h"
31 #include "config_node.h"
32 #include "socket.h"
33 #include "version.h"
34
35 typedef struct {
a048e5b @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2655 5dc97367-9…
alobbs authored
36 cherokee_list_t listed;
302696c @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2902 5dc97367-9…
alobbs authored
37 int id;
72f6444 @alobbs Clean up: Trims trailing spaces.
alobbs authored
38
dd0a852 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2652 5dc97367-9…
alobbs authored
39 /* Listener */
a048e5b @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2655 5dc97367-9…
alobbs authored
40 cherokee_socket_t socket;
72f6444 @alobbs Clean up: Trims trailing spaces.
alobbs authored
41
dd0a852 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2652 5dc97367-9…
alobbs authored
42 /* Information */
a048e5b @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2655 5dc97367-9…
alobbs authored
43 cherokee_buffer_t ip;
72f6444 @alobbs Clean up: Trims trailing spaces.
alobbs authored
44 int port;
dd0a852 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2652 5dc97367-9…
alobbs authored
45
46 /* Strings */
a048e5b @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2655 5dc97367-9…
alobbs authored
47 cherokee_buffer_t server_string;
48 cherokee_buffer_t server_string_w_port;
dd0a852 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2652 5dc97367-9…
alobbs authored
49
a048e5b @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2655 5dc97367-9…
alobbs authored
50 cherokee_buffer_t server_address;
51 cherokee_buffer_t server_port;
72f6444 @alobbs Clean up: Trims trailing spaces.
alobbs authored
52
a048e5b @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2655 5dc97367-9…
alobbs authored
53 /* Accepting */
54 cuint_t accept_continuous;
55 cuint_t accept_continuous_max;
56 cuint_t accept_recalculate;
dd0a852 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2652 5dc97367-9…
alobbs authored
57 } cherokee_bind_t;
58
59 #define BIND(b) ((cherokee_bind_t *)(b))
60 #define BIND_IS_TLS(b) (BIND(b)->socket.is_tls == TLS)
61
a048e5b @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2655 5dc97367-9…
alobbs authored
62
dd0a852 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2652 5dc97367-9…
alobbs authored
63 ret_t cherokee_bind_new (cherokee_bind_t **listener);
64 ret_t cherokee_bind_free (cherokee_bind_t *listener);
65
66 ret_t cherokee_bind_configure (cherokee_bind_t *listener, cherokee_config_node_t *config);
67 ret_t cherokee_bind_set_default (cherokee_bind_t *listener);
a048e5b @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2655 5dc97367-9…
alobbs authored
68 ret_t cherokee_bind_accept_more (cherokee_bind_t *listener, ret_t prev_ret);
dd0a852 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2652 5dc97367-9…
alobbs authored
69
72f6444 @alobbs Clean up: Trims trailing spaces.
alobbs authored
70 ret_t cherokee_bind_init_port (cherokee_bind_t *listener,
dd0a852 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2652 5dc97367-9…
alobbs authored
71 cuint_t listen_queue,
72 cherokee_boolean_t ipv6,
73 cherokee_server_token_t token);
74
75 #endif /* CHEROKEE_BIND_H */
Something went wrong with that request. Please try again.