26 #ifndef _SIPWITCH_CACHE_H_
27 #define _SIPWITCH_CACHE_H_
29 #ifndef _UCOMMON_STRING_H_
30 #include <ucommon/string.h>
33 #ifndef _UCOMMON_PLATFORM_H_
34 #include <ucommon/platform.h>
37 #ifndef _UCOMMON_SOCKET_H_
38 #include <ucommon/socket.h>
41 #ifndef __SIPWITCH_NAMESPACE_H_
45 #ifndef __SIPWITCH_MAPPED_H_
75 static void init(
void);
76 static void cleanup(
void);
77 static void userdump(
void);
92 static UserCache *request(
const char *
id);
96 struct sockaddr_internet address;
98 inline void set(
struct sockaddr *addr)
99 {memcpy(&address, addr,
sizeof(address));}
108 static void add(
const char *
id,
struct sockaddr *addr, time_t create,
unsigned expire = 130);
Definitions for memory mapped objects that may be shared between processes.
URI cache for tags, local, and remote id's.
GNU SIP Witch library namespace.
Cache management functions.
User caches may be used to contact nearby users in multicast registries.
void set(struct sockaddr *addr)