User caches may be used to contact nearby users in multicast registries.
More...
#include <cache.h>
|
void | set (struct sockaddr *addr) |
|
User caches may be used to contact nearby users in multicast registries.
- Author
- David Sugar dyfet.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org
Definition at line 84 of file cache.h.
sipwitch::UserCache::UserCache |
( |
| ) |
|
|
protected |
void sipwitch::UserCache::add |
( |
const char * |
id, |
|
|
struct sockaddr * |
addr, |
|
|
time_t |
create, |
|
|
unsigned |
expire = 130 |
|
) |
| |
|
static |
Add or refresh user in cache.
- Parameters
-
id | of user to update. |
address | of sipwitch peer who has this user. |
create | time of registration if multiple peers. |
expire | record in seconds. |
Definition at line 159 of file cache.cpp.
UserCache * sipwitch::UserCache::find |
( |
const char * |
id | ) |
|
|
static |
Find user record.
- Parameters
-
- Returns
- found cache entry.
Definition at line 130 of file cache.cpp.
void sipwitch::UserCache::release |
( |
void |
| ) |
|
|
private |
void sipwitch::UserCache::release |
( |
UserCache * |
entry | ) |
|
|
static |
Detach a found user record.
- Parameters
-
entry | to release or NULL if none. |
Definition at line 153 of file cache.cpp.
UserCache * sipwitch::UserCache::request |
( |
const char * |
id | ) |
|
|
staticprotected |
void sipwitch::UserCache::set |
( |
struct sockaddr * |
addr | ) |
|
|
inline |
struct sockaddr_internet sipwitch::UserCache::address |
time_t sipwitch::Cache::created |
|
inherited |
time_t sipwitch::Cache::expires |
|
inherited |
char sipwitch::UserCache::userid[32] |
The documentation for this class was generated from the following files: