|
Kannel: Open Source WAP and SMS gateway
svn-r5336
|
Go to the source code of this file.
Macros | |
| #define | INFINITE_TIME -1 |
Enumerations | |
| enum | program_status { starting_up, running, shutting_down } |
Functions | |
| Connection * | connect_to_bearerbox_real (Octstr *host, int port, int ssl, Octstr *our_host) |
| void | connect_to_bearerbox (Octstr *host, int port, int ssl, Octstr *our_host) |
| void | close_connection_to_bearerbox_real (Connection *conn) |
| void | close_connection_to_bearerbox (void) |
| int | read_from_bearerbox_real (Connection *conn, Msg **msg, double seconds) |
| int | read_from_bearerbox (Msg **msg, double seconds) |
| void | write_to_bearerbox_real (Connection *conn, Msg *pmsg) |
| void | write_to_bearerbox (Msg *msg) |
| int | deliver_to_bearerbox_real (Connection *conn, Msg *msg) |
| int | deliver_to_bearerbox (Msg *msg) |
| Octstr * | parse_date (Octstr *date) |
| int | restart_box (char **argv) |
Variables | |
| enum program_status | program_status |
| #define INFINITE_TIME -1 |
Definition at line 73 of file shared.h.
Referenced by main(), and read_messages_from_bearerbox().
| enum program_status |
| void close_connection_to_bearerbox | ( | void | ) |
Definition at line 122 of file shared.c.
References bb_conn, and close_connection_to_bearerbox_real().
Referenced by main(), and run_connects().
| void close_connection_to_bearerbox_real | ( | Connection * | conn | ) |
Definition at line 116 of file shared.c.
References conn_destroy().
Referenced by close_connection_to_bearerbox().
Definition at line 108 of file shared.c.
References bb_conn, connect_to_bearerbox_real(), host, our_host, panic, and ssl.
Referenced by main(), and run_connects().
| Connection* connect_to_bearerbox_real | ( | Octstr * | host, |
| int | port, | ||
| int | ssl, | ||
| Octstr * | our_host | ||
| ) |
Definition at line 83 of file shared.c.
References conn_open_tcp(), host, info(), octstr_get_cstr, our_host, and ssl.
Referenced by connect_to_bearerbox(), run_smppbox(), run_sqlbox(), and sql_to_bearerbox().
| int deliver_to_bearerbox | ( | Msg * | msg | ) |
Definition at line 166 of file shared.c.
References bb_conn, deliver_to_bearerbox_real(), and msg.
Referenced by send_message().
| int deliver_to_bearerbox_real | ( | Connection * | conn, |
| Msg * | msg | ||
| ) |
Definition at line 148 of file shared.c.
References conn_write_withlen(), error(), msg, msg_destroy(), msg_pack(), and octstr_destroy().
Referenced by deliver_to_bearerbox().
Definition at line 232 of file shared.c.
References date(), error(), octstr_get_char(), octstr_parse_long(), and warning().
Referenced by parse_progress_note_value(), parse_push_message_value(), parse_push_response_value(), and tokenize_date().
| int read_from_bearerbox | ( | Msg ** | msg, |
| double | seconds | ||
| ) |
Definition at line 220 of file shared.c.
References bb_conn, msg, and read_from_bearerbox_real().
Referenced by main(), and read_messages_from_bearerbox().
| int read_from_bearerbox_real | ( | Connection * | conn, |
| Msg ** | msg, | ||
| double | seconds | ||
| ) |
Definition at line 172 of file shared.c.
References conn_eof(), conn_error(), conn_read_withlen(), conn_wait(), error(), msg, msg_unpack, octstr_destroy(), and shutting_down.
Referenced by read_from_bearerbox(), and read_from_box().
| int restart_box | ( | char ** | argv | ) |
Definition at line 279 of file shared.c.
References error(), and gwthread_sleep().
Referenced by main().
| void write_to_bearerbox | ( | Msg * | msg | ) |
Definition at line 142 of file shared.c.
References bb_conn, and write_to_bearerbox_real().
Referenced by dispatch_datagram(), identify_to_bearerbox(), main(), obey_request_thread(), run_connects(), and send_message().
| void write_to_bearerbox_real | ( | Connection * | conn, |
| Msg * | pmsg | ||
| ) |
Definition at line 129 of file shared.c.
References conn_write_withlen(), error(), msg_destroy(), msg_pack(), and octstr_destroy().
Referenced by send_msg(), and write_to_bearerbox().