}bufferevent_free(bev); }staticvoidnet_read_callback(structbufferevent*bev,void*arg) {intrecv_len=0;charrecv_data[1024];structtimevaltv={5,0};memset(recv_data,0x00,sizeof(recv_data));recv_len=bufferevent_read(bev,recv_data,evbuffer_get_length(input));printf("T->G|%04d|%s|\n",recv_...
how to use: udpbev = bufferevent_openssl_socket_new(base, -1, ssl, BUFFEREVENT_SSL_CONNECTING, BEV_OPT_CLOSE_ON_FREE); struct timeval tv = {5, 0}; bufferevent_set_timeouts(udpbev, NULL, &tv); bufferevent_setcb(udpbev, NULL, NULL, udp_sen...