/freebsd/contrib/ntp/sntp/libevent/include/event2/ |
H A D | bufferevent.h | 113 struct bufferevent struct 135 typedef void (*bufferevent_data_cb)(struct bufferevent *bev, void *ctx); 154 typedef void (*bufferevent_event_cb)(struct bufferevent *bev, short what, void *ctx); 190 struct bufferevent *bufferevent_socket_new(struct event_base *base, evutil_socket_t fd, int options… 212 int bufferevent_socket_connect(struct bufferevent *, const struct sockaddr *, int); 242 int bufferevent_socket_connect_hostname(struct bufferevent *, 254 int bufferevent_socket_get_dns_error(struct bufferevent *bev); 268 int bufferevent_base_set(struct event_base *base, struct bufferevent *bufev); 274 struct event_base *bufferevent_get_base(struct bufferevent *bev); 286 int bufferevent_priority_set(struct bufferevent *bufev, int pri); [all …]
|
H A D | bufferevent_ssl.h | 68 struct bufferevent * 70 struct bufferevent *underlying, 86 struct bufferevent * 110 int bufferevent_openssl_get_allow_dirty_shutdown(struct bufferevent *bev); 112 void bufferevent_openssl_set_allow_dirty_shutdown(struct bufferevent *bev, 118 bufferevent_openssl_get_ssl(struct bufferevent *bufev); 122 int bufferevent_ssl_renegotiate(struct bufferevent *bev); 126 unsigned long bufferevent_get_openssl_error(struct bufferevent *bev);
|
/freebsd/contrib/libevent/include/event2/ |
H A D | bufferevent.h | 113 struct bufferevent struct 135 typedef void (*bufferevent_data_cb)(struct bufferevent *bev, void *ctx); 154 typedef void (*bufferevent_event_cb)(struct bufferevent *bev, short what, void *ctx); 190 struct bufferevent *bufferevent_socket_new(struct event_base *base, evutil_socket_t fd, int options… 212 int bufferevent_socket_connect(struct bufferevent *, const struct sockaddr *, int); 242 int bufferevent_socket_connect_hostname(struct bufferevent *, 254 int bufferevent_socket_get_dns_error(struct bufferevent *bev); 268 int bufferevent_base_set(struct event_base *base, struct bufferevent *bufev); 274 struct event_base *bufferevent_get_base(struct bufferevent *bev); 286 int bufferevent_priority_set(struct bufferevent *bufev, int pri); [all …]
|
H A D | bufferevent_ssl.h | 68 struct bufferevent * 70 struct bufferevent *underlying, 86 struct bufferevent * 110 int bufferevent_openssl_get_allow_dirty_shutdown(struct bufferevent *bev); 112 void bufferevent_openssl_set_allow_dirty_shutdown(struct bufferevent *bev, 118 bufferevent_openssl_get_ssl(struct bufferevent *bufev); 122 int bufferevent_ssl_renegotiate(struct bufferevent *bev); 126 unsigned long bufferevent_get_openssl_error(struct bufferevent *bev);
|
/freebsd/contrib/ntp/sntp/libevent/ |
H A D | bufferevent-internal.h | 156 struct bufferevent bev; 272 int (*enable)(struct bufferevent *, short); 278 int (*disable)(struct bufferevent *, short); 282 void (*unlink)(struct bufferevent *); 288 void (*destruct)(struct bufferevent *); 291 int (*adj_timeouts)(struct bufferevent *); 294 int (*flush)(struct bufferevent *, short, enum bufferevent_flush_mode); 297 int (*ctrl)(struct bufferevent *, enum bufferevent_ctrl_op, union bufferevent_ctrl_data *); 330 void bufferevent_suspend_read_(struct bufferevent *bufev, bufferevent_suspend_flags what); 334 void bufferevent_unsuspend_read_(struct bufferevent *bufev, bufferevent_suspend_flags what); [all …]
|
H A D | bufferevent.c | 63 static void bufferevent_cancel_all_(struct bufferevent *bev); 67 bufferevent_suspend_read_(struct bufferevent *bufev, bufferevent_suspend_flags what) in bufferevent_suspend_read_() 78 bufferevent_unsuspend_read_(struct bufferevent *bufev, bufferevent_suspend_flags what) in bufferevent_unsuspend_read_() 89 bufferevent_suspend_write_(struct bufferevent *bufev, bufferevent_suspend_flags what) in bufferevent_suspend_write_() 100 bufferevent_unsuspend_write_(struct bufferevent *bufev, bufferevent_suspend_flags what) in bufferevent_unsuspend_write_() 121 static void bufferevent_inbuf_wm_check(struct bufferevent *bev) in bufferevent_inbuf_wm_check() 140 struct bufferevent *bufev = arg; in bufferevent_inbuf_wm_cb() 155 struct bufferevent *bufev = &bufev_private->bev; in bufferevent_run_deferred_callbacks_locked() 189 struct bufferevent *bufev = &bufev_private->bev; in bufferevent_run_deferred_callbacks_unlocked() 241 bufferevent_run_readcb_(struct bufferevent *bufev, int options) in bufferevent_run_readcb_() [all …]
|
H A D | bufferevent_filter.c | 62 static int be_filter_enable(struct bufferevent *, short); 63 static int be_filter_disable(struct bufferevent *, short); 64 static void be_filter_unlink(struct bufferevent *); 65 static void be_filter_destruct(struct bufferevent *); 67 static void be_filter_readcb(struct bufferevent *, void *); 68 static void be_filter_writecb(struct bufferevent *, void *); 69 static void be_filter_eventcb(struct bufferevent *, short, void *); 70 static int be_filter_flush(struct bufferevent *bufev, 72 static int be_filter_ctrl(struct bufferevent *, enum bufferevent_ctrl_op, union bufferevent_ctrl_da… 84 struct bufferevent *underlying; [all …]
|
H A D | bufferevent_async.c | 74 static int be_async_enable(struct bufferevent *, short); 75 static int be_async_disable(struct bufferevent *, short); 76 static void be_async_destruct(struct bufferevent *); 77 static int be_async_flush(struct bufferevent *, short, enum bufferevent_flush_mode); 78 static int be_async_ctrl(struct bufferevent *, enum bufferevent_ctrl_op, union bufferevent_ctrl_dat… 105 be_async_run_eventcb(struct bufferevent *bev, short what, int options) in be_async_run_eventcb() 109 be_async_trigger_nolock(struct bufferevent *bev, short what, int options) in be_async_trigger_nolock() 126 upcast(struct bufferevent *bev) in upcast() 165 struct bufferevent *bev = &beva->bev.bev; in bev_async_del_write() 176 struct bufferevent *bev = &beva->bev.bev; in bev_async_del_read() [all …]
|
H A D | bufferevent_sock.c | 79 static int be_socket_enable(struct bufferevent *, short); 80 static int be_socket_disable(struct bufferevent *, short); 81 static void be_socket_destruct(struct bufferevent *); 82 static int be_socket_flush(struct bufferevent *, short, enum bufferevent_flush_mode); 83 static int be_socket_ctrl(struct bufferevent *, enum bufferevent_ctrl_op, union bufferevent_ctrl_da… 85 static void be_socket_setfd(struct bufferevent *, evutil_socket_t); 100 bufferevent_socket_get_conn_address_(struct bufferevent *bev) in bufferevent_socket_get_conn_address_() 107 bufferevent_socket_set_conn_address_fd_(struct bufferevent *bev, in bufferevent_socket_set_conn_address_fd_() 120 bufferevent_socket_set_conn_address_(struct bufferevent *bev, in bufferevent_socket_set_conn_address_() 133 struct bufferevent *bufev = arg; in bufferevent_socket_outbuf_cb() [all …]
|
H A D | bufferevent_openssl.c | 161 struct bufferevent *bufev = BIO_get_data(b); in bio_bufferevent_write() 193 struct bufferevent *bufev = BIO_get_data(b); in bio_bufferevent_ctrl() 253 BIO_new_bufferevent(struct bufferevent *bufferevent) in BIO_new_bufferevent() argument 256 if (!bufferevent) in BIO_new_bufferevent() 261 BIO_set_data(result, bufferevent); in BIO_new_bufferevent() 295 struct bufferevent *underlying; 331 static int be_openssl_enable(struct bufferevent *, short); 332 static int be_openssl_disable(struct bufferevent *, short); 333 static void be_openssl_unlink(struct bufferevent *); 334 static void be_openssl_destruct(struct bufferevent *); [all …]
|
H A D | bufferevent_pair.c | 56 upcast(struct bufferevent *bev) in upcast() 69 incref_and_lock(struct bufferevent *b) in incref_and_lock() 79 decref_and_unlock(struct bufferevent *b) in decref_and_unlock() 116 struct bufferevent *pair[2]) in bufferevent_pair_new() 153 be_pair_transfer(struct bufferevent *src, struct bufferevent *dst, in be_pair_transfer() 225 be_pair_enable(struct bufferevent *bufev, short events) in be_pair_enable() 253 be_pair_disable(struct bufferevent *bev, short events) in be_pair_disable() 265 be_pair_unlink(struct bufferevent *bev) in be_pair_unlink() 278 be_pair_destruct(struct bufferevent *bev) in be_pair_destruct() 305 be_pair_flush(struct bufferevent *bev, short iotype, in be_pair_flush() [all …]
|
/freebsd/contrib/libevent/ |
H A D | bufferevent-internal.h | 156 struct bufferevent bev; 272 int (*enable)(struct bufferevent *, short); 278 int (*disable)(struct bufferevent *, short); 282 void (*unlink)(struct bufferevent *); 288 void (*destruct)(struct bufferevent *); 291 int (*adj_timeouts)(struct bufferevent *); 294 int (*flush)(struct bufferevent *, short, enum bufferevent_flush_mode); 297 int (*ctrl)(struct bufferevent *, enum bufferevent_ctrl_op, union bufferevent_ctrl_data *); 330 void bufferevent_suspend_read_(struct bufferevent *bufev, bufferevent_suspend_flags what); 334 void bufferevent_unsuspend_read_(struct bufferevent *bufev, bufferevent_suspend_flags what); [all …]
|
H A D | bufferevent.c | 63 static void bufferevent_cancel_all_(struct bufferevent *bev); 67 bufferevent_suspend_read_(struct bufferevent *bufev, bufferevent_suspend_flags what) in bufferevent_suspend_read_() 78 bufferevent_unsuspend_read_(struct bufferevent *bufev, bufferevent_suspend_flags what) in bufferevent_unsuspend_read_() 89 bufferevent_suspend_write_(struct bufferevent *bufev, bufferevent_suspend_flags what) in bufferevent_suspend_write_() 100 bufferevent_unsuspend_write_(struct bufferevent *bufev, bufferevent_suspend_flags what) in bufferevent_unsuspend_write_() 121 static void bufferevent_inbuf_wm_check(struct bufferevent *bev) in bufferevent_inbuf_wm_check() 140 struct bufferevent *bufev = arg; in bufferevent_inbuf_wm_cb() 155 struct bufferevent *bufev = &bufev_private->bev; in bufferevent_run_deferred_callbacks_locked() 189 struct bufferevent *bufev = &bufev_private->bev; in bufferevent_run_deferred_callbacks_unlocked() 241 bufferevent_run_readcb_(struct bufferevent *bufev, int options) in bufferevent_run_readcb_() [all …]
|
H A D | bufferevent_filter.c | 62 static int be_filter_enable(struct bufferevent *, short); 63 static int be_filter_disable(struct bufferevent *, short); 64 static void be_filter_unlink(struct bufferevent *); 65 static void be_filter_destruct(struct bufferevent *); 67 static void be_filter_readcb(struct bufferevent *, void *); 68 static void be_filter_writecb(struct bufferevent *, void *); 69 static void be_filter_eventcb(struct bufferevent *, short, void *); 70 static int be_filter_flush(struct bufferevent *bufev, 72 static int be_filter_ctrl(struct bufferevent *, enum bufferevent_ctrl_op, union bufferevent_ctrl_da… 84 struct bufferevent *underlying; [all …]
|
H A D | bufferevent_async.c | 74 static int be_async_enable(struct bufferevent *, short); 75 static int be_async_disable(struct bufferevent *, short); 76 static void be_async_destruct(struct bufferevent *); 77 static int be_async_flush(struct bufferevent *, short, enum bufferevent_flush_mode); 78 static int be_async_ctrl(struct bufferevent *, enum bufferevent_ctrl_op, union bufferevent_ctrl_dat… 105 be_async_run_eventcb(struct bufferevent *bev, short what, int options) in be_async_run_eventcb() 109 be_async_trigger_nolock(struct bufferevent *bev, short what, int options) in be_async_trigger_nolock() 126 upcast(struct bufferevent *bev) in upcast() 165 struct bufferevent *bev = &beva->bev.bev; in bev_async_del_write() 176 struct bufferevent *bev = &beva->bev.bev; in bev_async_del_read() [all …]
|
H A D | bufferevent_sock.c | 79 static int be_socket_enable(struct bufferevent *, short); 80 static int be_socket_disable(struct bufferevent *, short); 81 static void be_socket_destruct(struct bufferevent *); 82 static int be_socket_flush(struct bufferevent *, short, enum bufferevent_flush_mode); 83 static int be_socket_ctrl(struct bufferevent *, enum bufferevent_ctrl_op, union bufferevent_ctrl_da… 85 static void be_socket_setfd(struct bufferevent *, evutil_socket_t); 100 bufferevent_socket_get_conn_address_(struct bufferevent *bev) in bufferevent_socket_get_conn_address_() 107 bufferevent_socket_set_conn_address_fd_(struct bufferevent *bev, in bufferevent_socket_set_conn_address_fd_() 120 bufferevent_socket_set_conn_address_(struct bufferevent *bev, in bufferevent_socket_set_conn_address_() 133 struct bufferevent *bufev = arg; in bufferevent_socket_outbuf_cb() [all …]
|
H A D | bufferevent_openssl.c | 161 struct bufferevent *bufev = BIO_get_data(b); in bio_bufferevent_write() 193 struct bufferevent *bufev = BIO_get_data(b); in bio_bufferevent_ctrl() 253 BIO_new_bufferevent(struct bufferevent *bufferevent) in BIO_new_bufferevent() argument 256 if (!bufferevent) in BIO_new_bufferevent() 261 BIO_set_data(result, bufferevent); in BIO_new_bufferevent() 295 struct bufferevent *underlying; 331 static int be_openssl_enable(struct bufferevent *, short); 332 static int be_openssl_disable(struct bufferevent *, short); 333 static void be_openssl_unlink(struct bufferevent *); 334 static void be_openssl_destruct(struct bufferevent *); [all …]
|
H A D | bufferevent_pair.c | 56 upcast(struct bufferevent *bev) in upcast() 69 incref_and_lock(struct bufferevent *b) in incref_and_lock() 79 decref_and_unlock(struct bufferevent *b) in decref_and_unlock() 116 struct bufferevent *pair[2]) in bufferevent_pair_new() 153 be_pair_transfer(struct bufferevent *src, struct bufferevent *dst, in be_pair_transfer() 225 be_pair_enable(struct bufferevent *bufev, short events) in be_pair_enable() 253 be_pair_disable(struct bufferevent *bev, short events) in be_pair_disable() 265 be_pair_unlink(struct bufferevent *bev) in be_pair_unlink() 278 be_pair_destruct(struct bufferevent *bev) in be_pair_destruct() 305 be_pair_flush(struct bufferevent *bev, short iotype, in be_pair_flush() [all …]
|
/freebsd/contrib/pf/libevent/ |
H A D | evbuffer.c | 50 void bufferevent_setwatermark(struct bufferevent *, short, size_t, size_t); 75 struct bufferevent *bufev = arg; in bufferevent_read_pressure_cb() 91 struct bufferevent *bufev = arg; in bufferevent_readcb() 154 struct bufferevent *bufev = arg; in bufferevent_writecb() 221 struct bufferevent * 225 struct bufferevent *bufev; in bufferevent_new() 227 if ((bufev = calloc(1, sizeof(struct bufferevent))) == NULL) in bufferevent_new() 261 bufferevent_priority_set(struct bufferevent *bufev, int priority) in bufferevent_priority_set() 274 bufferevent_free(struct bufferevent *bufev) in bufferevent_free() 291 bufferevent_write(struct bufferevent *bufev, void *data, size_t size) in bufferevent_write() [all …]
|
H A D | event.h | 230 struct bufferevent; 231 typedef void (*evbuffercb)(struct bufferevent *, void *); 232 typedef void (*everrorcb)(struct bufferevent *, short what, void *); 239 struct bufferevent { struct 260 struct bufferevent *bufferevent_new(int fd, argument 262 int bufferevent_base_set(struct event_base *base, struct bufferevent *bufev); 263 int bufferevent_priority_set(struct bufferevent *bufev, int pri); 264 void bufferevent_free(struct bufferevent *bufev); 265 int bufferevent_write(struct bufferevent *bufev, void *data, size_t size); 266 int bufferevent_write_buffer(struct bufferevent *bufev, struct evbuffer *buf); [all …]
|
/freebsd/contrib/ntp/sntp/libevent/test/ |
H A D | regress_bufferevent.c | 105 readcb(struct bufferevent *bev, void *arg) in readcb() 125 writecb(struct bufferevent *bev, void *arg) in writecb() 133 errorcb(struct bufferevent *bev, short what, void *arg) in errorcb() 141 struct bufferevent *bev1 = NULL, *bev2 = NULL; in test_bufferevent_impl() 147 struct bufferevent *pair[2]; in test_bufferevent_impl() 349 struct bufferevent *pair[2]; in test_bufferevent_pair_release_lock() 367 wm_readcb(struct bufferevent *bev, void *arg) in wm_readcb() 390 wm_writecb(struct bufferevent *bev, void *arg) in wm_writecb() 400 wm_errorcb(struct bufferevent *bev, short what, void *arg) in wm_errorcb() 408 struct bufferevent *bev1 = NULL, *bev2 = NULL; in test_bufferevent_watermarks_impl() [all …]
|
H A D | test-fdleak.c | 82 server_read_cb(struct bufferevent *bev, void *ctx) in server_read_cb() 93 server_event_cb(struct bufferevent *bev, short events, void *ctx) in server_event_cb() 112 struct bufferevent *bev = bufferevent_socket_new(base, sock, in listener_accept_cb() 173 client_read_cb(struct bufferevent *bev, void *ctx) in client_read_cb() 193 client_event_cb(struct bufferevent *bev, short events, void *ctx) in client_event_cb() 210 struct bufferevent *bev = bufferevent_socket_new(base, -1, in start_client()
|
/freebsd/contrib/libevent/test/ |
H A D | regress_bufferevent.c | 105 readcb(struct bufferevent *bev, void *arg) in readcb() 125 writecb(struct bufferevent *bev, void *arg) in writecb() 133 errorcb(struct bufferevent *bev, short what, void *arg) in errorcb() 141 struct bufferevent *bev1 = NULL, *bev2 = NULL; in test_bufferevent_impl() 147 struct bufferevent *pair[2]; in test_bufferevent_impl() 349 struct bufferevent *pair[2]; in test_bufferevent_pair_release_lock() 367 wm_readcb(struct bufferevent *bev, void *arg) in wm_readcb() 390 wm_writecb(struct bufferevent *bev, void *arg) in wm_writecb() 400 wm_errorcb(struct bufferevent *bev, short what, void *arg) in wm_errorcb() 408 struct bufferevent *bev1 = NULL, *bev2 = NULL; in test_bufferevent_watermarks_impl() [all …]
|
/freebsd/contrib/ntp/sntp/libevent/sample/ |
H A D | le-proxy.c | 49 static void drained_writecb(struct bufferevent *bev, void *ctx); 50 static void eventcb(struct bufferevent *bev, short what, void *ctx); 53 readcb(struct bufferevent *bev, void *ctx) in readcb() 55 struct bufferevent *partner = ctx; in readcb() 80 drained_writecb(struct bufferevent *bev, void *ctx) in drained_writecb() 82 struct bufferevent *partner = ctx; in drained_writecb() 93 close_on_finished_writecb(struct bufferevent *bev, void *ctx) in close_on_finished_writecb() 103 eventcb(struct bufferevent *bev, short what, void *ctx) in eventcb() 105 struct bufferevent *partner = ctx; in eventcb() 162 struct bufferevent *b_out, *b_in; in accept_cb() [all …]
|
/freebsd/contrib/libevent/sample/ |
H A D | le-proxy.c | 49 static void drained_writecb(struct bufferevent *bev, void *ctx); 50 static void eventcb(struct bufferevent *bev, short what, void *ctx); 53 readcb(struct bufferevent *bev, void *ctx) in readcb() 55 struct bufferevent *partner = ctx; in readcb() 80 drained_writecb(struct bufferevent *bev, void *ctx) in drained_writecb() 82 struct bufferevent *partner = ctx; in drained_writecb() 93 close_on_finished_writecb(struct bufferevent *bev, void *ctx) in close_on_finished_writecb() 103 eventcb(struct bufferevent *bev, short what, void *ctx) in eventcb() 105 struct bufferevent *partner = ctx; in eventcb() 162 struct bufferevent *b_out, *b_in; in accept_cb() [all …]
|