23 Star 57 Fork 15

hotmocha / sbalance

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
sbproxy.h 838 Bytes
一键复制 编辑 原始数据 按行查看 历史
hotmocha 提交于 2015-06-30 20:20 . a
/*
* MODULE NAME :
* PROGRAM NAME : sbproxy.h
* AUTHOR :
* CREATE DATE : 2015-05-08 10:32:39
* PROGRAM DESC :
*
* HISTORY :
*
*/
#ifndef _H_SBPROXY_H_
#define _H_SBPROXY_H_
#define SB_MAX_HOSTNAME_LEN 256
#define SB_DNS_MAX_IP_LEN 64
struct sb_dns_request
{
char host[SB_MAX_HOSTNAME_LEN];
char ip[SB_DNS_MAX_IP_LEN];
struct list_head sess_list_head;
struct hlist_node hash_node;
};
int sb_proxy_send_request_to_server_event(struct sb_cycle_env *env, struct sb_event *ev);
int sb_proxy_test_connect_http_server_complete_event(struct sb_cycle_env *env, struct sb_event *ev);
int sb_proxy_get_request_event(struct sb_cycle_env *env, struct sb_event *ev);
int sb_proxy_accept_event(struct sb_cycle_env *env, struct sb_event *ev);
int sb_proxy_discard_resp(struct sb_cycle_env *env, int msgtype);
#endif
C
1
https://gitee.com/hotmocha/sbalance.git
git@gitee.com:hotmocha/sbalance.git
hotmocha
sbalance
sbalance
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891