Kannel: Open Source WAP and SMS gateway
svn-r5336
|
Go to the source code of this file.
Enumerations | |
enum | { no_cache = -1, iniatilised = -2, not_iniatilised = -3, cached = 0 } |
Functions | |
static WTPCached_tid * | cache_item_create_empty (void) |
static void | cache_item_destroy (void *item) |
static void | add_tid (WTPRespMachine *resp_machine, long tid) |
static void | set_tid_by_item (WTPCached_tid *item, long tid) |
static int | tid_in_window (long rcv_tid, long last_tid) |
static WTPCached_tid * | tid_cached (WTPRespMachine *resp_machine) |
void | wtp_tid_cache_init (void) |
void | wtp_tid_cache_shutdown (void) |
int | wtp_tid_is_valid (WAPEvent *event, WTPRespMachine *resp_machine) |
void | wtp_tid_set_by_machine (WTPRespMachine *resp_machine, long tid) |
static int | tid_is_cached (void *a, void *b) |
Variables | |
static List * | tid_cache = NULL |
anonymous enum |
Enumerator | |
---|---|
no_cache | |
iniatilised | |
not_iniatilised | |
cached |
|
static |
Definition at line 287 of file wtp_tid.c.
References cache_item_create_empty(), gwlist_append(), new_item(), tid_cache, and wap_addr_tuple_duplicate().
Referenced by wtp_tid_is_valid().
|
static |
Definition at line 236 of file wtp_tid.c.
References WTPCached_tid::addr_tuple, and WTPCached_tid::tid.
Referenced by add_tid().
|
static |
Definition at line 247 of file wtp_tid.c.
References WTPCached_tid::addr_tuple, and wap_addr_tuple_destroy().
Referenced by wtp_tid_cache_shutdown().
|
static |
Definition at line 301 of file wtp_tid.c.
References gwlist_lock(), gwlist_unlock(), WTPCached_tid::tid, and tid_cache.
Referenced by wtp_tid_is_valid(), and wtp_tid_set_by_machine().
|
static |
Definition at line 274 of file wtp_tid.c.
References gwlist_search(), tid_cache, and tid_is_cached().
Referenced by wtp_tid_is_valid(), and wtp_tid_set_by_machine().
|
static |
Definition at line 204 of file wtp_tid.c.
References debug(), rcv_tid(), and WTP_TID_WINDOW_SIZE.
Referenced by wtp_tid_is_valid().
|
static |
Definition at line 263 of file wtp_tid.c.
References WTPCached_tid::addr_tuple, and wap_addr_tuple_same().
Referenced by tid_cached().
void wtp_tid_cache_init | ( | void | ) |
Definition at line 102 of file wtp_tid.c.
References gwlist_create, and tid_cache.
Referenced by wtp_resp_init().
void wtp_tid_cache_shutdown | ( | void | ) |
Definition at line 107 of file wtp_tid.c.
References cache_item_destroy(), debug(), gwlist_destroy(), gwlist_len(), and tid_cache.
Referenced by wtp_resp_shutdown().
int wtp_tid_is_valid | ( | WAPEvent * | event, |
WTPRespMachine * | resp_machine | ||
) |
Definition at line 119 of file wtp_tid.c.
References add_tid(), debug(), fail, info(), no_cached_tid, ok, rcv_tid(), WAPEvent::RcvInvoke, set_tid_by_item(), WTPCached_tid::tid, tid_cached(), tid_in_window(), and WAPEvent::u.
void wtp_tid_set_by_machine | ( | WTPRespMachine * | resp_machine, |
long | tid | ||
) |
Definition at line 185 of file wtp_tid.c.
References set_tid_by_item(), and tid_cached().
|
static |
Definition at line 82 of file wtp_tid.c.
Referenced by add_tid(), set_tid_by_item(), tid_cached(), wtp_tid_cache_init(), and wtp_tid_cache_shutdown().