Set up a bufferevent for it. */structevent_base*base=evconnlistener_get_base(listener);structbufferevent*bev=bufferevent_socket_new(base,fd,BEV_OPT_CLOSE_ON_FREE);bufferevent_setcb(bev, echo_read_cb,NULL, echo_event_cb, stat); bufferevent_enable(bev, EV_READ|EV_WRITE); bufferevent_priority...
If the bufferevent does not already have a socket set, we allocate a new socket here and make it nonblocking before we begin. 在开始前,如果bufferevent没有配置套接字,将会在这里分配一个新的套接字,并设置为非阻塞的 If no address is provided, we assume that the socket is already connecting, ...
evhtp.c:(.text+0x46b1): undefined reference to `bufferevent_openssl_socket_new' /usr/bin/ld: /usr/local/src/libevhtp-1.2.15/build/libevhtp.a(evhtp.c.o): in function `evhtp_connection_ssl_new': evhtp.c:(.text+0x9cda): undefined reference to `bufferevent_openssl_socket_new' collect2:...
Set up a bufferevent for it. */structevent_base*base=evconnlistener_get_base(listener);structbufferevent*bev=bufferevent_socket_new(base,fd,BEV_OPT_CLOSE_ON_FREE);bufferevent_setcb(bev, echo_read_cb,NULL, echo_event_cb, stat); bufferevent_enable(bev, EV_READ|EV_WRITE); bufferevent_priority...
解决libevhtp使用时报错undefined reference to `bufferevent_openssl_socket_new' https://zhuanlan.zhihu.com/p/390331882?utm_id=0