ARB
|
#include <arbdb.h>
#include <ad_cb.h>
#include <servercntrl.h>
#include <ut_valgrinded.h>
#include <arb_file.h>
#include <arb_sleep.h>
#include <arb_diff.h>
Go to the source code of this file.
Macros | |
#define | TIMEOUT 1000*60*2 |
#define | LOOPS 30 |
Functions | |
GBDATA * | dbserver_container (GBDATA *gb_main) |
GBDATA * | dbserver_entry (GBDATA *gb_main, const char *entry) |
GBDATA * | get_command_entry (GBDATA *gb_main) |
GBDATA * | get_param_entry (GBDATA *gb_main) |
GBDATA * | get_result_entry (GBDATA *gb_main) |
GB_ERROR | init_data (GBDATA *gb_main) |
bool | served (GBDATA *gb_main) |
static void | command_cb () |
static void | react_to_command (GBDATA *gb_main) |
static GB_ERROR | server_main_loop (GBDATA *gb_main) |
static GB_ERROR | check_socket_available (const arb_params ¶ms) |
static GB_ERROR | run_server (const arb_params ¶ms) |
static GB_ERROR | run_command (const arb_params ¶ms, const char *command) |
static void | show_help () |
int | ARB_main (int argc, char *argv[]) |
Variables | |
static bool | do_shutdown = false |
static bool | command_triggered = false |
static const char * | savemode = "b" |
#define TIMEOUT 1000*60*2 |
Definition at line 19 of file db_server.cxx.
Referenced by run_server().
#define LOOPS 30 |
Definition at line 20 of file db_server.cxx.
Definition at line 22 of file db_server.cxx.
References GB_CREATE_CONTAINER, and GB_search().
Referenced by dbserver_entry().
Definition at line 25 of file db_server.cxx.
References arb_assert, dbserver_container(), GB_nextEntry(), and GB_searchOrCreate_string().
Referenced by get_command_entry(), get_param_entry(), and get_result_entry().
Definition at line 36 of file db_server.cxx.
References dbserver_entry().
Referenced by init_data(), react_to_command(), run_command(), and server_main_loop().
Definition at line 37 of file db_server.cxx.
References dbserver_entry().
Referenced by init_data(), react_to_command(), and run_command().
Definition at line 38 of file db_server.cxx.
References dbserver_entry().
Referenced by init_data(), react_to_command(), and run_command().
Definition at line 40 of file db_server.cxx.
References error(), GB_await_error(), get_command_entry(), get_param_entry(), get_result_entry(), and NULp.
Referenced by run_server().
|
inline |
Definition at line 50 of file db_server.cxx.
References GB_begin_transaction(), GB_commit_transaction(), and GBCMS_accept_calls().
Referenced by server_main_loop().
|
static |
Definition at line 61 of file db_server.cxx.
References command_triggered.
Referenced by server_main_loop().
|
static |
Definition at line 65 of file db_server.cxx.
References command, command_triggered, do_shutdown, error(), GB_await_error(), GB_begin_transaction(), GB_commit_transaction(), GB_read_string(), GB_save(), GB_write_string(), GBS_global_string(), get_command_entry(), get_param_entry(), get_result_entry(), NULp, and ta.
Referenced by server_main_loop().
Definition at line 132 of file db_server.cxx.
References command_cb(), command_triggered, do_shutdown, error(), fputs(), GB_add_callback(), GB_CB_CHANGED, GB_read_clients(), get_command_entry(), NULp, react_to_command(), served(), and ta.
Referenced by run_server().
|
static |
Definition at line 163 of file db_server.cxx.
References GB_clear_error(), GB_close(), GB_open(), GBS_global_string(), NULp, and arb_params::tcp.
Referenced by run_server().
|
static |
Definition at line 173 of file db_server.cxx.
References check_socket_available(), arb_params::default_file, error(), GB_await_error(), GB_close(), gb_main, GB_open(), GBCMS_open(), GBCMS_shutdown(), GBS_global_string(), init_data(), server_main_loop(), ta, arb_params::tcp, and TIMEOUT.
Referenced by ARB_main().
|
static |
Definition at line 202 of file db_server.cxx.
References arb_params::default_file, error(), GB_await_error(), GB_close(), gb_main, GB_open(), GB_read_char_pntr(), GB_write_string(), GBS_global_string(), get_command_entry(), get_param_entry(), get_result_entry(), NULp, result, ta, and arb_params::tcp.
Referenced by ARB_main().
|
static |
Definition at line 242 of file db_server.cxx.
References arb_print_server_params(), and fputs().
Referenced by ARB_main(), and CLI::show_help_if_useful().
Definition at line 255 of file db_server.cxx.
References arb_trace_argv(), error(), EXIT_FAILURE, EXIT_SUCCESS, free_arb_params(), GBS_global_string(), help(), NULp, run_command(), run_server(), and show_help().
|
static |
Definition at line 56 of file db_server.cxx.
Referenced by react_to_command(), and server_main_loop().
|
static |
Definition at line 57 of file db_server.cxx.
Referenced by command_cb(), react_to_command(), and server_main_loop().
|
static |
Definition at line 59 of file db_server.cxx.