Lines Matching refs:bev
93 struct bufferevent *bev; in listener_cb() local
95 bev = bufferevent_socket_new(base, fd, BEV_OPT_CLOSE_ON_FREE); in listener_cb()
96 if (!bev) { in listener_cb()
101 bufferevent_setcb(bev, NULL, conn_writecb, conn_eventcb, NULL); in listener_cb()
102 bufferevent_enable(bev, EV_WRITE); in listener_cb()
103 bufferevent_disable(bev, EV_READ); in listener_cb()
105 bufferevent_write(bev, MESSAGE, strlen(MESSAGE)); in listener_cb()
109 conn_writecb(struct bufferevent *bev, void *user_data) in conn_writecb() argument
111 struct evbuffer *output = bufferevent_get_output(bev); in conn_writecb()
114 bufferevent_free(bev); in conn_writecb()
119 conn_eventcb(struct bufferevent *bev, short events, void *user_data) in conn_eventcb() argument
129 bufferevent_free(bev); in conn_eventcb()