|
Kannel: Open Source WAP and SMS gateway
svn-r5336
|
#include <math.h>#include <stdlib.h>#include "gwlib/gwlib.h"#include "wap_events.h"#include "wtp_resp.h"Go to the source code of this file.
Data Structures | |
| struct | WTPCached_tid |
Macros | |
| #define | WTP_TID_WINDOW_SIZE (1L << 14) |
Typedefs | |
| typedef struct WTPCached_tid | WTPCached_tid |
Enumerations | |
| enum | { no_cached_tid, ok, fail } |
Functions | |
| void | wtp_tid_cache_init (void) |
| void | wtp_tid_cache_shutdown (void) |
| int | wtp_tid_is_valid (WAPEvent *event, WTPRespMachine *machine) |
| void | wtp_tid_set_by_machine (WTPRespMachine *machine, long tid) |
| #define WTP_TID_WINDOW_SIZE (1L << 14) |
Definition at line 75 of file wtp_tid.h.
Referenced by tid_in_window().
| typedef struct WTPCached_tid WTPCached_tid |
| anonymous enum |
| Enumerator | |
|---|---|
| no_cached_tid | |
| ok | |
| fail | |
| 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 * | 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 * | machine, |
| long | tid | ||
| ) |
Definition at line 185 of file wtp_tid.c.
References set_tid_by_item(), and tid_cached().