BEV_EVENT_ERROR , %d,%s\n", err,evutil_socket_error_to_string(err));interrdns = bufferevent_socket_get_dns_error(bev);if(errdns)printf("eventcb, DNS error: %d:%s\n", errdns, evutil_gai_strerror(errdns));
0);evutil_socket_tsock;structsockaddr_inmy_addr;sock = socket(PF_INET, SOCK_DGRAM,0);if(sock ==-1) {printf("socket create error\n");return;
Additional navigation options Files e5302ac bufferevent_sock.c changelist-internal.h configure.ac defer-internal.h devpoll.c epoll.c epoll_sub.c epolltable-internal.h evbuffer-internal.h evconfig-private.h.cmake evconfig-private.h.in
staticvoidtest_edgetriggered(void*et){structevent*ev=NULL;structevent_base*base=NULL;constchar*test ="test string";evutil_socket_tpair[2] = {-1,-1};intsupports_et;if(evutil_socketpair(LOCAL_SOCKETPAIR_AF, SOCK_STREAM,0, pair) ==-1) { tt_abort_perror("socketpair"); } called = was_...
evutil_make_socket_nonblocking(clientfd); bev = bufferevent_socket_new(server->base, clientfd, BEV_OPT_CLOSE_ON_FREE);if(!bev) {if(OUTPUTERROR)fprintf(stderr,"[GuNET_Server] Failed to malloc bufferevent.");free(client);evutil_closesocket(clientfd);return; ...