Skip to content

Commit

Permalink
Update xkcp_util.h
Browse files Browse the repository at this point in the history
  • Loading branch information
liudf0716 authored Apr 19, 2017
1 parent 3c57f37 commit 47d548f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions xkcp_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ struct bufferevent;

struct xkcp_proxy_param {
struct event_base *base;
int udp_fd;
int xkcpfd;
struct sockaddr_in sockaddr;
int addr_len;
};
Expand Down Expand Up @@ -46,14 +46,16 @@ void dump_task_list(iqueue_head *task_list, struct bufferevent *bev);

void xkcp_set_config_param(ikcpcb *kcp);

void xkcp_tcp_event_cb(struct bufferevent *bev, short what, struct xkcp_task *task);
void *xkcp_tcp_event_cb(struct bufferevent *bev, short what, struct xkcp_task *task);

void xkcp_tcp_read_cb(struct bufferevent *bev, ikcpcb *kcp);

void xkcp_forward_all_data(iqueue_head *task_list);

void xkcp_forward_data(struct xkcp_task *task);

void xkcp_update_task_list(iqueue_head *task_list);

void set_timer_interval(struct event *timeout);

void xkcp_timer_event_cb(struct event *timeout, iqueue_head *task_list);
Expand Down

0 comments on commit 47d548f

Please sign in to comment.