Home
last modified time | relevance | path

Searched refs:evutil_socket_t (Results 1 – 25 of 80) sorted by relevance

1234

/external/libevent/test/
Dbench_cascade.c63 static evutil_socket_t *pipes;
67 read_cb(evutil_socket_t fd, short which, void *arg) in read_cb()
70 evutil_socket_t sock = (evutil_socket_t)(ev_intptr_t)arg; in read_cb()
84 evutil_socket_t *cp; in run_once()
88 pipes = (evutil_socket_t *)calloc(num_pipes * 2, sizeof(evutil_socket_t)); in run_once()
110 evutil_socket_t fd = i < num_pipes - 1 ? cp[3] : -1; in run_once()
Dregress_testutils.c74 evutil_socket_t dns_sock = -1;
78 regress_get_socket_port(evutil_socket_t fd) in regress_get_socket_port()
95 evutil_socket_t *psock, in regress_get_dnsserver()
100 evutil_socket_t sock; in regress_get_dnsserver()
229 evutil_socket_t s = evconnlistener_get_fd(lev); in regress_get_listener_addr()
Dbench.c70 static evutil_socket_t *pipes;
77 read_cb(evutil_socket_t fd, short which, void *arg) in read_cb()
102 evutil_socket_t *cp, space; in run_once()
150 evutil_socket_t *cp;
198 pipes = calloc(num_pipes * 2, sizeof(evutil_socket_t));
Dregress_et.c63 read_cb(evutil_socket_t fd, short event, void *arg) in read_cb()
83 evutil_socket_t *pair = data->pair; in test_edgetriggered()
183 read_notification_cb(evutil_socket_t fd, short event, void *arg) in read_notification_cb()
192 write_notification_cb(evutil_socket_t fd, short event, void *arg) in write_notification_cb()
212 evutil_socket_t *pair = data->pair; in test_edge_triggered_multiple_events()
Dregress.c78 evutil_socket_t pair[2];
107 simple_read_cb(evutil_socket_t fd, short event, void *arg) in simple_read_cb()
126 basic_read_cb(evutil_socket_t fd, short event, void *data) in basic_read_cb()
160 dummy_read_cb(evutil_socket_t fd, short event, void *arg) in dummy_read_cb()
165 simple_write_cb(evutil_socket_t fd, short event, void *arg) in simple_write_cb()
177 multiple_write_cb(evutil_socket_t fd, short event, void *arg) in multiple_write_cb()
210 multiple_read_cb(evutil_socket_t fd, short event, void *arg) in multiple_read_cb()
232 timeout_cb(evutil_socket_t fd, short event, void *arg) in timeout_cb()
243 combined_read_cb(evutil_socket_t fd, short event, void *arg) in combined_read_cb()
261 combined_write_cb(evutil_socket_t fd, short event, void *arg) in combined_write_cb()
[all …]
Dtest-dumpevents.c52 callback1(evutil_socket_t fd, short events, void *arg) in callback1()
56 callback2(evutil_socket_t fd, short events, void *arg) in callback2()
72 evutil_socket_t pair1[2]; in main()
73 evutil_socket_t pair2[2]; in main()
Dregress_testutils.h43 evutil_socket_t *psock,
48 int regress_get_socket_port(evutil_socket_t fd);
Dregress_listener.c58 acceptcb(struct evconnlistener *listener, evutil_socket_t fd, in acceptcb()
83 evutil_socket_t fd1, fd2, fd3; in regress_pick_a_port()
190 acceptcb_free(struct evconnlistener *listener, evutil_socket_t fd, in acceptcb_free()
212 evutil_socket_t fd = EVUTIL_INVALID_SOCKET; in regress_listener_close_accepted_fd()
245 evutil_socket_t fd1 = EVUTIL_INVALID_SOCKET, fd2 = EVUTIL_INVALID_SOCKET; in regress_listener_immediate_close()
Dtest-weof.c55 evutil_socket_t pair[2];
60 write_cb(evutil_socket_t fd, short event, void *arg) in write_cb()
/external/libevent/
Devmap-internal.h62 int evmap_io_add_(struct event_base *base, evutil_socket_t fd, struct event *ev);
71 int evmap_io_del_(struct event_base *base, evutil_socket_t fd, struct event *ev);
78 void evmap_io_active_(struct event_base *base, evutil_socket_t fd, short events);
86 void evmap_signal_active_(struct event_base *base, evutil_socket_t signum, int ncalls);
91 void *evmap_io_get_fdinfo_(struct event_io_map *ctx, evutil_socket_t fd);
Diocp-internal.h118 struct evbuffer *evbuffer_overlapped_new_(evutil_socket_t fd);
121 evutil_socket_t evbuffer_overlapped_get_fd_(struct evbuffer *buf);
123 void evbuffer_overlapped_set_fd_(struct evbuffer *buf, evutil_socket_t fd);
172 int event_iocp_port_associate_(struct event_iocp_port *port, evutil_socket_t fd,
203 evutil_socket_t fd, int options);
208 int bufferevent_async_connect_(struct bufferevent *bev, evutil_socket_t fd,
Dchangelist-internal.h55 evutil_socket_t fd;
96 int event_changelist_add_(struct event_base *base, evutil_socket_t fd, short old, short events,
99 int event_changelist_del_(struct event_base *base, evutil_socket_t fd, short old, short events,
Dlistener.c72 evutil_socket_t (*getfd)(struct evconnlistener *);
96 evutil_socket_t fd;
112 evutil_socket_t fd); /* XXXX export this? */
117 static evutil_socket_t event_listener_getfd(struct evconnlistener *);
154 static void listener_read_cb(evutil_socket_t, short, void *);
159 evutil_socket_t fd) in evconnlistener_new()
216 evutil_socket_t fd; in evconnlistener_new_bind()
333 evutil_socket_t
336 evutil_socket_t fd; in evconnlistener_get_fd()
343 static evutil_socket_t
[all …]
Dutil-internal.h301 int evutil_socket_connect_(evutil_socket_t *fd_ptr, const struct sockaddr *sa, int socklen);
303 int evutil_socket_finished_connecting_(evutil_socket_t fd);
306 int evutil_ersatz_socketpair_(int, int , int, evutil_socket_t[]);
504 evutil_socket_t evutil_socket_(int domain, int type, int protocol);
505 evutil_socket_t evutil_accept4_(evutil_socket_t sockfd, struct sockaddr *addr,
510 int evutil_make_internal_pipe_(evutil_socket_t fd[2]);
511 evutil_socket_t evutil_eventfd_(unsigned initval, int flags);
Devmap.c82 evutil_socket_t fd;
273 evmap_io_add_(struct event_base *base, evutil_socket_t fd, struct event *ev) in evmap_io_add_()
354 evmap_io_del_(struct event_base *base, evutil_socket_t fd, struct event *ev) in evmap_io_del_()
420 evmap_io_active_(struct event_base *base, evutil_socket_t fd, short events) in evmap_io_active_()
501 evmap_signal_active_(struct event_base *base, evutil_socket_t sig, int ncalls) in evmap_signal_active_()
518 evmap_io_get_fdinfo_(struct event_io_map *map, evutil_socket_t fd) in evmap_io_get_fdinfo_()
530 struct event_base *, evutil_socket_t, struct evmap_io *, void *);
550 evutil_socket_t fd;
607 evmap_io_reinit_iter_fn(struct event_base *base, evutil_socket_t fd,
678 evmap_io_delete_all_iter_fn(struct event_base *base, evutil_socket_t fd,
[all …]
Dsignal.c93 static int evsig_add(struct event_base *, evutil_socket_t, short, short, void *);
94 static int evsig_del(struct event_base *, evutil_socket_t, short, short, void *);
114 static evutil_socket_t evsig_base_fd = -1;
133 evsig_cb(evutil_socket_t fd, short what, void *arg) in evsig_cb()
280 evsig_add(struct event_base *base, evutil_socket_t evsignal, short old, short events, void *p) in evsig_add()
363 evsig_del(struct event_base *base, evutil_socket_t evsignal, short old, short events, void *p) in evsig_del()
Dbufferevent_sock.c85 static void be_socket_setfd(struct bufferevent *, evutil_socket_t);
108 evutil_socket_t fd) in bufferevent_socket_set_conn_address_fd_()
149 bufferevent_readcb(evutil_socket_t fd, short event, void *arg) in bufferevent_readcb()
230 bufferevent_writecb(evutil_socket_t fd, short event, void *arg) in bufferevent_writecb()
344 bufferevent_socket_new(struct event_base *base, evutil_socket_t fd, in bufferevent_socket_new()
385 evutil_socket_t fd; in bufferevent_socket_connect()
552 bufferevent_new(evutil_socket_t fd, in bufferevent_new()
599 evutil_socket_t fd; in be_socket_destruct()
619 be_socket_setfd(struct bufferevent *bufev, evutil_socket_t fd) in be_socket_setfd()
Devsignal-internal.h30 #ifndef evutil_socket_t
43 evutil_socket_t ev_signal_pair[2];
Devutil.c202 evutil_socketpair(int family, int type, int protocol, evutil_socket_t fd[2]) in evutil_socketpair()
213 evutil_socket_t fd[2]) in evutil_ersatz_socketpair_()
227 evutil_socket_t listener = -1; in evutil_ersatz_socketpair_()
228 evutil_socket_t connector = -1; in evutil_ersatz_socketpair_()
229 evutil_socket_t acceptor = -1; in evutil_ersatz_socketpair_()
318 evutil_make_socket_nonblocking(evutil_socket_t fd) in evutil_make_socket_nonblocking()
351 evutil_fast_socket_nonblocking(evutil_socket_t fd) in evutil_fast_socket_nonblocking()
365 evutil_make_listen_socket_reuseable(evutil_socket_t sock) in evutil_make_listen_socket_reuseable()
380 evutil_make_listen_socket_reuseable_port(evutil_socket_t sock) in evutil_make_listen_socket_reuseable_port()
394 evutil_make_listen_socket_ipv6only(evutil_socket_t sock) in evutil_make_listen_socket_ipv6only()
[all …]
/external/libevent/include/event2/
Dutil.h308 #define evutil_socket_t intptr_t macro
310 #define evutil_socket_t int
390 int evutil_socketpair(int d, int type, int protocol, evutil_socket_t sv[2]);
397 int evutil_make_socket_nonblocking(evutil_socket_t sock);
411 int evutil_make_listen_socket_reuseable(evutil_socket_t sock);
424 int evutil_make_listen_socket_reuseable_port(evutil_socket_t sock);
436 int evutil_make_listen_socket_ipv6only(evutil_socket_t sock);
445 int evutil_make_socket_closeonexec(evutil_socket_t sock);
455 int evutil_closesocket(evutil_socket_t sock);
470 int evutil_make_tcp_listen_socket_deferred(evutil_socket_t sock);
[all …]
Devent_compat.h147 int event_once(evutil_socket_t , short,
148 void (*)(evutil_socket_t, short, void *), void *, const struct timeval *);
184 void event_set(struct event *, evutil_socket_t, short, void (*)(evutil_socket_t, short, void *), vo…
Devent.h1014 typedef void (*event_callback_fn)(evutil_socket_t, short, void *);
1090 struct event *event_new(struct event_base *, evutil_socket_t, short, event_callback_fn, void *);
1132 int event_assign(struct event *, struct event_base *, evutil_socket_t, short, event_callback_fn, vo…
1209 int event_base_once(struct event_base *, evutil_socket_t, short, event_callback_fn, void *, const s…
1346 evutil_socket_t event_get_fd(const struct event *ev);
1388 struct event_base **base_out, evutil_socket_t *fd_out, short *events_out,
1573 void event_base_active_by_fd(struct event_base *base, evutil_socket_t fd, short events);
Dlistener.h50 typedef void (*evconnlistener_cb)(struct evconnlistener *, evutil_socket_t, struct sockaddr *, int …
133 evutil_socket_t fd);
175 evutil_socket_t evconnlistener_get_fd(struct evconnlistener *lev);
/external/libevent/sample/
Dhello-world.c32 static void listener_cb(struct evconnlistener *, evutil_socket_t,
36 static void signal_cb(evutil_socket_t, short, void *);
88 listener_cb(struct evconnlistener *listener, evutil_socket_t fd, in listener_cb()
132 signal_cb(evutil_socket_t sig, short events, void *user_data) in signal_cb()
Devent-read-fifo.c34 fifo_read(evutil_socket_t fd, short event, void *arg) in fifo_read()
77 signal_cb(evutil_socket_t fd, short event, void *arg) in signal_cb()
137 evfifo = event_new(base, (evutil_socket_t)socket, EV_READ|EV_PERSIST, fifo_read, in main()

1234