Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/liudf0716/xkcp_client
Browse files Browse the repository at this point in the history
  • Loading branch information
Dengfeng Liu committed Apr 24, 2017
2 parents 4268dc2 + b0fa16a commit 9003976
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tcp_proxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,12 @@ tcp_proxy_accept_cb(struct evconnlistener *listener, evutil_socket_t fd,
{
struct xkcp_proxy_param *p = param;
struct bufferevent *b_in = NULL;
struct event_base *base = p->base;
struct event_base *base = evconnlistener_get_base(listener);

b_in = bufferevent_socket_new(base, fd,
BEV_OPT_CLOSE_ON_FREE|BEV_OPT_DEFER_CALLBACKS);
assert(b_in);


static int conv = 1;
ikcpcb *kcp_client = ikcp_create(conv, param);
xkcp_set_config_param(kcp_client);
Expand Down

0 comments on commit 9003976

Please sign in to comment.