Kannel: Open Source WAP and SMS gateway  $Revision: 5037 $
wap_push_ota.h File Reference
#include "wap/wap_events.h"
#include "wap/wap.h"

Go to the source code of this file.

Macros

#define CURRENT_VERSION   0;
 
#define CONNECTED_PORT   9201;
 

Enumerations

enum  { GSM_CSD_IPV4 = 0x0A }
 

Functions

void wap_push_ota_init (wap_dispatch_func_t *wsp_dispatch, wap_dispatch_func_t *wsp_unit_dispatch)
 
void wap_push_ota_shutdown (void)
 
void wap_push_ota_dispatch_event (WAPEvent *e)
 
void wap_push_ota_bb_address_set (Octstr *ba)
 

Macro Definition Documentation

#define CONNECTED_PORT   9201;

Definition at line 70 of file wap_push_ota.h.

Referenced by pack_server_address().

#define CURRENT_VERSION   0;

Definition at line 69 of file wap_push_ota.h.

Referenced by pack_sia().

Enumeration Type Documentation

anonymous enum
Enumerator
GSM_CSD_IPV4 

Definition at line 75 of file wap_push_ota.h.

75  {
76  GSM_CSD_IPV4 = 0x0A
77 };

Function Documentation

void wap_push_ota_bb_address_set ( Octstr ba)

Definition at line 203 of file wap_push_ota.c.

References BearerboxAddress::address, gw_assert(), BearerboxAddress::mutex, mutex_lock, mutex_unlock, and name().

Referenced by main().

204 {
205  gw_assert(in);
206 
208  bearerbox->address = name(in);
210 }
#define mutex_unlock(m)
Definition: thread.h:136
gw_assert(wtls_machine->packet_to_send!=NULL)
static Octstr * name(Octstr *os)
Definition: wap_push_ota.c:626
static BearerboxAddress * bearerbox
Definition: wap_push_ota.c:112
#define mutex_lock(m)
Definition: thread.h:130
void wap_push_ota_dispatch_event ( WAPEvent e)

Definition at line 193 of file wap_push_ota.c.

References gw_assert(), gwlist_produce(), run_status, and running.

Referenced by main().

194 {
197 }
void gwlist_produce(List *list, void *item)
Definition: list.c:411
static enum @32 run_status
gw_assert(wtls_machine->packet_to_send!=NULL)
static List * ota_queue
Definition: wap_push_ota.c:114
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_address_create(), dispatch_to_wsp, dispatch_to_wsp_unit, gw_assert(), gwlist_add_producer(), gwlist_create, gwthread_create, limbo, main_thread(), run_status, and running.

Referenced by main().

168 {
171 
172  dispatch_to_wsp = wsp_dispatch;
173  dispatch_to_wsp_unit = wsp_unit_dispatch;
174 
176 
180 }
wap_dispatch_func_t * dispatch_to_wsp_unit
Definition: wap_push_ota.c:117
wap_dispatch_func_t * dispatch_to_wsp
Definition: wap_push_ota.c:116
static enum @32 run_status
static BearerboxAddress * bearerbox_address_create(void)
Definition: wap_push_ota.c:634
#define gwthread_create(func, arg)
Definition: gwthread.h:90
gw_assert(wtls_machine->packet_to_send!=NULL)
static List * ota_queue
Definition: wap_push_ota.c:114
static BearerboxAddress * bearerbox
Definition: wap_push_ota.c:112
#define gwlist_create()
Definition: list.h:136
static void main_thread(void *arg)
Definition: wap_push_ota.c:217
void gwlist_add_producer(List *list)
Definition: list.c:383
void wap_push_ota_shutdown ( void  )

Definition at line 182 of file wap_push_ota.c.

References bearerbox_address_destroy(), gw_assert(), gwlist_destroy(), gwlist_remove_producer(), gwthread_join_every(), main_thread(), run_status, running, terminating, and wap_event_destroy_item().

Referenced by main().

183 {
188 
191 }
static enum @32 run_status
void gwthread_join_every(gwthread_func_t *func)
void gwlist_remove_producer(List *list)
Definition: list.c:401
void wap_event_destroy_item(void *event)
Definition: wap_events.c:130
static void bearerbox_address_destroy(BearerboxAddress *ba)
Definition: wap_push_ota.c:645
gw_assert(wtls_machine->packet_to_send!=NULL)
static List * ota_queue
Definition: wap_push_ota.c:114
static BearerboxAddress * bearerbox
Definition: wap_push_ota.c:112
static void main_thread(void *arg)
Definition: wap_push_ota.c:217
void gwlist_destroy(List *list, gwlist_item_destructor_t *destructor)
Definition: list.c:145
See file LICENSE for details about the license agreement for using, modifying, copying or deriving work from this software.