Home
last modified time | relevance | path

Searched refs:socket (Results 1 – 23 of 23) sorted by relevance

/libevent-2.1.12/sample/
H A Devent-read-fifo.c90 HANDLE socket; in main() local
92 socket = CreateFileA("test.txt", /* open File */ in main()
100 if (socket == INVALID_HANDLE_VALUE) in main()
107 int socket; in main() local
123 socket = open(fifo, O_RDONLY | O_NONBLOCK, 0); in main()
125 if (socket == -1) { in main()
137 evfifo = event_new(base, (evutil_socket_t)socket, EV_READ|EV_PERSIST, fifo_read, in main()
144 evfifo = event_new(base, socket, EV_READ|EV_PERSIST, fifo_read, in main()
154 CloseHandle(socket); in main()
156 close(socket); in main()
H A Ddns-example.c200 sock = socket(PF_INET, SOCK_DGRAM, 0); in main()
/libevent-2.1.12/
H A Devdns.c1474 port->socket, EV_READ | EV_PERSIST, in server_port_flush()
1733 port->socket = socket; in evdns_add_server_port_with_base()
2141 if (port->socket > 0) { in server_port_free()
2142 evutil_closesocket(port->socket); in server_port_free()
2143 port->socket = -1; in server_port_free()
2434 if (server->socket >= 0) in evdns_base_clear_nameservers_and_suspend()
2435 evutil_closesocket(server->socket); in evdns_base_clear_nameservers_and_suspend()
2536 if (bind(ns->socket, in evdns_nameserver_add_impl_()
2591 evutil_closesocket(ns->socket); in evdns_nameserver_add_impl_()
4087 if (server->socket >= 0) in evdns_nameserver_free()
[all …]
H A Dconfigure.ac132 AC_SEARCH_LIBS([socket], [socket])
246 sys/socket.h \
712 #include <sys/socket.h>
738 #include <sys/socket.h>
756 #include <sys/socket.h>
770 #include <sys/socket.h>
H A Dwhatsnew-2.0.txt155 working with non-socket file descriptors) only work with some operating
170 /* We want a method that can work with non-socket file descriptors */
184 All APIs that formerly accepted int as a socket type now accept
209 one EV_WRITE event per socket, per event base. This restriction is no
318 Data structures are a little smarter: our lookups from socket to pending
324 actually a way to tell for certain whether a socket is writable with IOCP.
462 Since bufferevents that use a socket are not the only kind,
490 on a socket directly, call bufferevent_openssl_socket_new().
559 You can now more easily automate setting up a bound socket to listen for
H A DChangeLog-2.0109 o Remove bogus casts of socket to int before calling ev_callback (f032516)
215 o IOCP: don't launch reads or writes on an unconnected socket (495c227)
319 o Fix a memory leak on win32 socket->event map. (b4f89f0)
456 o Fix some uses of int for socket in regress (5d389dc)
652 o Avoid close of uninitialized socket in evbuffer unit test (bda21e7)
693 o Add test for behavior on remote socket close (44d57ee)
739 o Limit the maximum number of events on each socket to 65535 (819f949)
923 o Use evutil_socket_t, not int, when logging socket errors. (292467c)
1099 o New function to automate connecting on a socket-based bufferevent.
1145 o Do not mangle socket handles on 64-bit windows.
[all …]
H A Devutil.c250 listener = socket(AF_INET, type, 0); in evutil_ersatz_socketpair_()
263 connector = socket(AF_INET, type, 0); in evutil_ersatz_socketpair_()
548 if ((*fd_ptr = socket(sa->sa_family, SOCK_STREAM, 0)) < 0) in evutil_socket_connect_()
798 if ((fd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) >= 0 && in evutil_check_interfaces()
807 if ((fd = socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP)) >= 0 && in evutil_check_interfaces()
2599 r = socket(domain, type, protocol); in evutil_socket_()
2606 r = socket(domain, type & SOCKET_TYPE_MASK, protocol); in evutil_socket_()
H A Dwhatsnew-2.1.txt146 an event while leaving its socket and/or signal triggers unchanged.
162 EV_CLOSED flag that programs can use to detect when a socket has
338 timeouts from socket and ssl bufferevents correctly.
363 The previous evdns interface used an "open a test UDP socket" trick in
433 The socket errno value is now preserved when invoking an http error
504 The evutil_make_tcp_listen_socket_deferred() can make a tcp listener socket
600 simultaneously create a socket, make it nonblocking, and make it
602 avoid race-conditions if an exec() occurs after a socket is socket is
H A Devent_iocp.c153 SOCKET s = socket(AF_INET, SOCK_STREAM, 0); in init_extension_functions()
H A DChangeLog-1.432 …o If the kernel tells us that there are a negative number of bytes to read from a socket, do not b…
72 o Only bind the socket on connect when a local address has been provided; reported by Alejo Sanchez
180 o removed linger from http server socket; reported by Ilya Martynov
H A DCMakeLists.txt344 set(CMAKE_REQUIRED_LIBRARIES socket nsl)
399 sys/socket.h
698 set(SOCKADDR_HEADERS ${SOCKADDR_HEADERS} sys/socket.h)
918 list(APPEND LIB_PLATFORM socket nsl)
H A DChangeLog217 o Preserve socket error from listen across closesocket cleanup (2ccd00a6)
257 o ipv6only socket bind support (ba148796)
701 o cmake/solaris: fix building (link with socket,nsl) (050bfc7 Azat Khuzhin)
737 o The Windows socket type is defined as SOCKET. (c9e6c3d billsegall)
1069 o Avoid redundant syscall to make a nonblocking socket nonblocking
1071 o Avoid redundant syscall if making a socket cloexec twice (1f29b18)
1538 o Remove bogus casts of socket to int before calling ev_callback (f032516)
1644 o IOCP: don't launch reads or writes on an unconnected socket (495c227)
1748 o Fix a memory leak on win32 socket->event map. (b4f89f0)
1914 o Minimize syscalls during socket creation in listener.c (7e9e289)
[all …]
H A Dlistener.c548 SOCKET s = socket(as->family, SOCK_STREAM, 0); in start_accepting()
H A Devent-config.h.cmake367 /* Define to 1 if you have the <sys/socket.h> header file. */
/libevent-2.1.12/include/event2/
H A Ddns_compat.h345 evdns_add_server_port(evutil_socket_t socket, int flags,
H A Ddns.h655 …evdns_add_server_port_with_base(struct event_base *base, evutil_socket_t socket, int flags, evdns_…
/libevent-2.1.12/test/
H A Dregress_testutils.c103 sock = socket(AF_INET, SOCK_DGRAM, 0); in regress_get_dnsserver()
H A Dbench_httpclient.c146 if ((sock = socket(AF_INET, SOCK_STREAM, 0)) < 0) in launch_request()
H A Dregress_util.c604 evutil_socket_t fd = socket(AF_INET, SOCK_STREAM, 0); in sock_err_fn()
676 fd = socket(AF_INET, SOCK_STREAM, 0); in test_evutil_log()
H A Dregress_dns.c393 sock = socket(AF_INET, SOCK_DGRAM, 0); in dns_server()
1298 int fd = socket(AF_INET, SOCK_STREAM, 0); in test_bufferevent_connect_hostname()
2080 if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) { in test_getaddrinfo_async_cancel_stress()
H A Dregress_bufferevent.c670 fd = socket(localhost->sin_family, SOCK_STREAM, 0); in fake_listener_create()
H A Dregress.c3113 sock[i] = socket(AF_INET, SOCK_DGRAM, 0); in test_many_events()
H A Dregress_http.c200 fd = socket(AF_INET, SOCK_STREAM, 0); in http_connect()