|
Kannel: Open Source WAP and SMS gateway
svn-r5336
|
#include <string.h>#include <stdlib.h>#include <unistd.h>#include <signal.h>#include "gwlib/gwlib.h"#include "gwlib/http.h"Go to the source code of this file.
Macros | |
| #define | MAX_THREADS 1024 |
Functions | |
| static void | split_headers (Octstr *headers, List **split) |
| static void | client_thread (void *arg) |
| static void | help (void) |
| static void | sigterm (int signo) |
| int | main (int argc, char **argv) |
Variables | |
| Octstr * | whitelist |
| Octstr * | blacklist |
| Octstr * | reply_text = NULL |
| int | verbose |
| int | port |
| int | ssl = 0 |
| static volatile sig_atomic_t | run |
| static List * | extra_headers = NULL |
| #define MAX_THREADS 1024 |
Definition at line 71 of file test_http_server.c.
Referenced by main().
|
static |
Definition at line 104 of file test_http_server.c.
References blacklist, client(), debug(), extra_headers, gwlist_append(), gwlist_create, gwlist_destroy(), gwlist_get(), gwlist_len(), http_accept_request(), http_cgi_variable(), http_close_all_ports(), http_destroy_cgiargs(), HTTP_FOUND, http_header_combine(), http_header_dump(), http_header_value(), HTTP_OK, http_send_reply(), info(), HTTPCGIVar::name, octstr_append_from_hex(), octstr_compare(), octstr_create, octstr_destroy(), octstr_destroy_item(), octstr_dump, octstr_duplicate, octstr_format(), octstr_get_cstr, octstr_imm(), octstr_print(), reply_text, run, ssl, url, HTTPCGIVar::value, verbose, and whitelist.
Referenced by main().
|
static |
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 311 of file test_http_server.c.
References blacklist, client_thread(), debug(), error(), extra_headers, filename, getopt(), GW_DEBUG, GW_NON_EXCL, gwlib_init(), gwlib_shutdown(), gwlist_destroy(), gwthread_create, gwthread_join(), help(), http_open_port(), log_open(), log_set_output_level(), MAX_THREADS, octstr_create, octstr_destroy(), octstr_destroy_item(), octstr_dump, octstr_get_cstr, octstr_read_file(), optarg, panic, reply_text, run, sigterm(), split_headers(), ssl, threads, verbose, and whitelist.
|
static |
Definition at line 306 of file test_http_server.c.
Referenced by main().
Definition at line 81 of file test_http_server.c.
References gwlist_append(), gwlist_create, octstr_copy, octstr_get_char(), octstr_len(), split, and start.
Referenced by main().
| Octstr * blacklist |
Definition at line 73 of file test_http_server.c.
Referenced by client_thread(), and main().
|
static |
Definition at line 79 of file test_http_server.c.
Referenced by client_thread(), and main().
| int port |
Definition at line 76 of file test_http_server.c.
| Octstr* reply_text = NULL |
Definition at line 74 of file test_http_server.c.
Referenced by client_thread(), and main().
|
static |
Definition at line 78 of file test_http_server.c.
Referenced by client_thread(), main(), and sigterm().
| int ssl = 0 |
Definition at line 77 of file test_http_server.c.
Referenced by accept_boxc(), accept_smpp(), boxc_create(), build_request(), client_thread(), conn_pool_get(), conn_pool_key(), conn_wrap_fd(), connect_to_bearerbox(), connect_to_bearerbox_real(), get_connection(), http_open_port(), http_open_port_if(), http_use_proxy(), httpadmin_start(), httpd_emu_create(), init_smsbox(), main(), server_thread(), smsc_http_create(), start_http_thread(), and wait_for_connections().
| int verbose |
Definition at line 76 of file test_http_server.c.
Referenced by client_thread(), and main().
| Octstr* whitelist |
Definition at line 73 of file test_http_server.c.
Referenced by client_thread(), and main().