evutil_make_listen_socket_reuseable(listener);structsockaddr_insin;sin.sin_family = AF_INET;sin.sin_addr.s_addr =0;sin.sin_port = htons(LISTEN_PORT);if(bind(listener, (struct sockaddr *)&sin,sizeof(sin)) <0) { perror("bind");return1; }if(listen(listener, LISTEN_BACKLOG) <0) {...
}if(flags & LEV_OPT_CLOSE_ON_EXEC) {if(evutil_make_socket_closeonexec(fd) <0) {evutil_closesocket(fd);returnNULL; } } setsockopt(fd, SOL_SOCKET, SO_KEEPALIVE, (void*)&on,sizeof(on));if(flags & LEV_OPT_REUSEABLE) { evutil_make_listen_socket_reuseable(fd); }if(sa) {if(bind...
Security Insights 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 ...