Kannel: Open Source WAP and SMS gateway
svn-r5336
|
#include <errno.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <sys/time.h>
#include <limits.h>
#include <signal.h>
#include <sys/param.h>
#include "gwlib/gwlib.h"
Go to the source code of this file.
Macros | |
#define | IN_BUFSIZE 256 /* Buffer size for stdin */ |
#define | IN_TIMEOUT 1 /* Timeout for stdin */ |
Functions | |
static void | signal_handler (int signum) |
static void | setup_signal_handlers (void) |
static Octstr * | choose_message (Octstr **msgs, int num_msgs) |
static double | get_current_time (void) |
static int | check_args (int i, int argc, char **argv) |
static Octstr * | randomize (Octstr *os) |
int | main (int argc, char **argv) |
Variables | |
static char | usage [] |
static int | port = 10000 |
static Octstr * | host |
static long | max_send = LONG_MAX |
static double | interval = 1.0 |
static int | sigint_received |
static int | rnd = 0 |
#define IN_BUFSIZE 256 /* Buffer size for stdin */ |
Definition at line 117 of file fakesmsc.c.
Referenced by main().
#define IN_TIMEOUT 1 /* Timeout for stdin */ |
Definition at line 118 of file fakesmsc.c.
Referenced by main().
|
static |
Definition at line 167 of file fakesmsc.c.
References host, interval, max_send, octstr_create, panic, rnd, and usage.
Referenced by main().
|
static |
Definition at line 157 of file fakesmsc.c.
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 223 of file fakesmsc.c.
References check_args(), choose_message(), conn_destroy(), conn_eof(), conn_error(), conn_open_tcp(), conn_read_line(), conn_wait(), conn_write(), debug(), end_time, get_and_set_debugs(), get_current_time(), gwlib_init(), host, IN_BUFSIZE, IN_TIMEOUT, info(), interval, max_send, msg, num_sent, octstr_append_char(), octstr_create, octstr_destroy(), octstr_get_cstr, panic, randomize(), rnd, server(), setup_signal_handlers(), sigint_received, and start_time.
Definition at line 194 of file fakesmsc.c.
References gw_rand(), gwlist_destroy(), gwlist_get(), gwlist_len(), msg, octstr_append_char(), octstr_create, octstr_destroy_item(), octstr_format_append(), octstr_split_words(), and rnd.
Referenced by main().
|
static |
|
static |
Definition at line 128 of file fakesmsc.c.
References panic, and sigint_received.
Referenced by setup_signal_handlers().
|
static |
Definition at line 122 of file fakesmsc.c.
Referenced by build_request(), check_args(), conn_open_tcp(), conn_open_tcp_nb(), conn_open_tcp_nb_with_port(), conn_open_tcp_with_port(), conn_pool_get(), conn_pool_key(), connect_to_bearerbox(), connect_to_bearerbox_real(), get_connection(), main(), proxy_used_for_host(), smpp_create(), smsc_cgw_create(), smsc_emi2_create(), smsc_open(), and smsc_smpp_create().
|
static |
Definition at line 124 of file fakesmsc.c.
Referenced by check_args(), and main().
|
static |
Definition at line 123 of file fakesmsc.c.
Referenced by check_args(), and main().
|
static |
Definition at line 121 of file fakesmsc.c.
Referenced by accept_thread(), cimd_open(), client_create(), find_client(), get_connection(), handle_internal_event(), http_close_port(), http_open_port_if(), http_thread(), http_use_proxy(), main(), ois_open(), pack_server_address(), smppboxc_run(), smsc_open(), smsc_smpp_create(), sqlboxc_run(), start_http_thread(), update_session_data(), wap_addr_create(), and wapboxc_run().
|
static |
Definition at line 126 of file fakesmsc.c.
Referenced by check_args(), main(), and randomize().
|
static |
Definition at line 125 of file fakesmsc.c.
Referenced by main(), and signal_handler().
|
static |
Definition at line 77 of file fakesmsc.c.
Referenced by check_args().