Kannel: Open Source WAP and SMS gateway
svn-r5336
|
#include <errno.h>
#include "wap_push_ota.h"
#include "gwlib/gwlib.h"
#include "wap/wsp.h"
#include "wap/wsp_strings.h"
#include "wap/wsp_pdu.h"
Go to the source code of this file.
Data Structures | |
struct | BearerboxAddress |
Typedefs | |
typedef struct BearerboxAddress | BearerboxAddress |
Enumerations | |
enum | { limbo, running, terminating } |
Variables | |
static enum { ... } | run_status = limbo |
static BearerboxAddress * | bearerbox = NULL |
static List * | ota_queue = NULL |
static wap_dispatch_func_t * | dispatch_to_wsp |
static wap_dispatch_func_t * | dispatch_to_wsp_unit |
typedef struct BearerboxAddress BearerboxAddress |
Definition at line 110 of file wap_push_ota.c.
anonymous enum |
Enumerator | |
---|---|
limbo | |
running | |
terminating |
Definition at line 101 of file wap_push_ota.c.
|
static |
Definition at line 408 of file wap_push_ota.c.
References dispatch_to_wsp, gw_assert(), reason_assert(), WAPEvent::type, WAPEvent::u, and wap_event_create.
Referenced by handle_ota_event().
Definition at line 430 of file wap_push_ota.c.
References debug(), flags_assert(), http_header_add(), http_header_duplicate(), octstr_destroy(), octstr_format(), octstr_get_cstr, WAPEvent::type, WAPEvent::u, and wap_event_dump().
Referenced by make_confirmed_push_request(), make_push_request(), and make_unit_push_request().
|
static |
Definition at line 634 of file wap_push_ota.c.
References BearerboxAddress::address, BearerboxAddress::mutex, and mutex_create.
Referenced by wap_push_ota_init().
|
static |
Definition at line 645 of file wap_push_ota.c.
References BearerboxAddress::address, BearerboxAddress::mutex, mutex_destroy(), and octstr_destroy().
Referenced by wap_push_ota_shutdown().
|
static |
Definition at line 526 of file wap_push_ota.c.
References http_header_add(), and http_type_accepted().
Referenced by make_session_request().
|
static |
Definition at line 482 of file wap_push_ota.c.
References gw_assert(), WAPEvent::type, and WAPEvent::u.
Referenced by add_push_flag().
|
static |
Definition at line 227 of file wap_push_ota.c.
References abort_push(), debug(), make_confirmed_push_request(), make_push_request(), make_session_request(), make_unit_push_request(), WAPEvent::type, wap_event_destroy(), and wap_event_dump().
Referenced by main_thread().
|
static |
Definition at line 217 of file wap_push_ota.c.
References gwlist_consume(), handle_ota_event(), ota_queue, run_status, and running.
Referenced by wap_push_ota_init(), and wap_push_ota_shutdown().
|
static |
Definition at line 329 of file wap_push_ota.c.
References add_push_flag(), debug(), dispatch_to_wsp, gw_assert(), octstr_duplicate, WAPEvent::type, WAPEvent::u, and wap_event_create.
Referenced by handle_ota_event().
|
static |
Definition at line 309 of file wap_push_ota.c.
References add_push_flag(), dispatch_to_wsp, gw_assert(), octstr_duplicate, WAPEvent::type, WAPEvent::u, and wap_event_create.
Referenced by handle_ota_event().
|
static |
Definition at line 261 of file wap_push_ota.c.
References check_session_request_headers(), debug(), dispatch_to_wsp_unit, gw_assert(), http_header_duplicate(), http_header_find_all(), octstr_duplicate, pack_sia(), WAPEvent::type, WAPEvent::u, wap_addr_tuple_duplicate(), and wap_event_create.
Referenced by handle_ota_event().
|
static |
Definition at line 355 of file wap_push_ota.c.
References add_push_flag(), debug(), dispatch_to_wsp_unit, dlr_url, gw_assert(), octstr_duplicate, service_name, smsbox_id, smsc_id, WAPEvent::type, WAPEvent::u, wap_addr_tuple_duplicate(), and wap_event_create.
Referenced by handle_ota_event().
Definition at line 626 of file wap_push_ota.c.
References get_official_ip(), octstr_compare(), octstr_duplicate, and octstr_imm().
Referenced by wap_push_ota_bb_address_set().
Definition at line 563 of file wap_push_ota.c.
References gw_assert(), gwlist_len(), http_header_get(), octstr_compare(), octstr_create, octstr_destroy(), octstr_format_append(), and octstr_imm().
Referenced by pack_sia().
|
static |
Definition at line 594 of file wap_push_ota.c.
References BearerboxAddress::address, bearerbox, CONNECTED_PORT, GSM_CSD_IPV4, BearerboxAddress::mutex, mutex_lock, mutex_unlock, octstr_append(), octstr_append_char(), octstr_append_decimal(), octstr_create, octstr_destroy(), octstr_duplicate, octstr_len(), octstr_set_bits(), and port.
Referenced by pack_sia().
Definition at line 536 of file wap_push_ota.c.
References CURRENT_VERSION, http_destroy_headers(), pack_appid_list(), pack_server_address(), wsp_pdu::u, wsp_pdu_create(), wsp_pdu_destroy(), and wsp_pdu_pack().
Referenced by make_session_request().
|
static |
Definition at line 513 of file wap_push_ota.c.
References gw_assert(), WSP_ABORT_USERDCR, WSP_ABORT_USERDCU, WSP_ABORT_USERPND, WSP_ABORT_USERREQ, and WSP_ABORT_USERRFS.
Referenced by abort_push().
void wap_push_ota_bb_address_set | ( | Octstr * | in | ) |
Definition at line 203 of file wap_push_ota.c.
References BearerboxAddress::address, bearerbox, gw_assert(), BearerboxAddress::mutex, mutex_lock, mutex_unlock, and name().
Referenced by main().
void wap_push_ota_dispatch_event | ( | WAPEvent * | e | ) |
Definition at line 193 of file wap_push_ota.c.
References gw_assert(), gwlist_produce(), ota_queue, run_status, and running.
Referenced by main().
void wap_push_ota_init | ( | wap_dispatch_func_t * | wsp_dispatch, |
wap_dispatch_func_t * | wsp_unit_dispatch | ||
) |
Definition at line 166 of file wap_push_ota.c.
References bearerbox, bearerbox_address_create(), dispatch_to_wsp, dispatch_to_wsp_unit, gw_assert(), gwlist_add_producer(), gwlist_create, gwthread_create, limbo, main_thread(), ota_queue, run_status, and running.
Referenced by main().
void wap_push_ota_shutdown | ( | void | ) |
Definition at line 182 of file wap_push_ota.c.
References bearerbox, bearerbox_address_destroy(), gw_assert(), gwlist_destroy(), gwlist_remove_producer(), gwthread_join_every(), main_thread(), ota_queue, run_status, running, terminating, and wap_event_destroy_item().
Referenced by main().
|
static |
Definition at line 112 of file wap_push_ota.c.
Referenced by pack_server_address(), wap_push_ota_bb_address_set(), wap_push_ota_init(), and wap_push_ota_shutdown().
|
static |
Definition at line 116 of file wap_push_ota.c.
Referenced by abort_push(), make_confirmed_push_request(), make_push_request(), and wap_push_ota_init().
|
static |
Definition at line 117 of file wap_push_ota.c.
Referenced by make_session_request(), make_unit_push_request(), and wap_push_ota_init().
|
static |
Definition at line 114 of file wap_push_ota.c.
Referenced by main_thread(), wap_push_ota_dispatch_event(), wap_push_ota_init(), and wap_push_ota_shutdown().
enum { ... } run_status |
Referenced by main_thread(), wap_push_ota_dispatch_event(), wap_push_ota_init(), and wap_push_ota_shutdown().