Ai
1 Star 0 Fork 0

zip/rtpengine

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
cookie_cache.h 616 Bytes
一键复制 编辑 原始数据 按行查看 历史
#ifndef _COOKIE_CACHE_H_
#define _COOKIE_CACHE_H_
#include <time.h>
#include <glib.h>
#include "aux.h"
#include "str.h"
struct cookie_cache_state {
GHashTable *in_use;
GHashTable *cookies;
};
struct cookie_cache {
mutex_t lock;
cond_t cond;
struct cookie_cache_state current, old;
time_t swap_time;
};
void cookie_cache_init(struct cookie_cache *);
str *cookie_cache_lookup(struct cookie_cache *, const str *);
void cookie_cache_insert(struct cookie_cache *, const str *, const str *);
void cookie_cache_remove(struct cookie_cache *, const str *);
void cookie_cache_cleanup(struct cookie_cache *);
#endif
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zip/rtpengine.git
git@gitee.com:zip/rtpengine.git
zip
rtpengine
rtpengine
master

搜索帮助