/freebsd-13-stable/contrib/libevent/include/event2/ |
H A D | bufferevent_ssl.h | 35 #include <event2/bufferevent.h> 47 SSL bufferevent. 57 Create a new SSL bufferevent to send its data over another bufferevent. 60 must also be the base for the underlying bufferevent. 65 @return A new bufferevent on success, or NULL on failure 68 struct bufferevent * 70 struct bufferevent *underlying, 76 Create a new SSL bufferevent to send its data over an SSL * on a socket. 83 @return A new bufferevent o [all...] |
H A D | bufferevent.h | 31 @file event2/bufferevent.h 38 A bufferevent provides input and output buffers that get filled and 39 drained automatically. The user of a bufferevent no longer deals 43 Once initialized, the bufferevent structure can be used repeatedly 46 When reading is enabled, the bufferevent will try to read from the 48 When writing is enabled, the bufferevent will try to write data onto its 56 <dd>A bufferevent that reads and writes data onto a network 65 <dd>A bufferevent that transforms data, and sends or receives it 66 over another underlying bufferevent. Created with 70 <dd>A bufferevent tha 113 struct bufferevent struct [all...] |
H A D | bufferevent_compat.h | 35 Create a new bufferevent for an fd. 46 Once initialized, the bufferevent structure can be used repeatedly with 49 When read enabled the bufferevent will try to read from the file descriptor 55 enabling the bufferevent for the first time. 71 @return a pointer to a newly allocated bufferevent struct, or NULL if an 75 struct bufferevent *bufferevent_new(evutil_socket_t fd, 82 @param bufev the bufferevent to be modified 86 void bufferevent_settimeout(struct bufferevent *bufev, 95 /** macro for getting access to the input buffer of a bufferevent */ 97 /** macro for getting access to the output buffer of a bufferevent */ [all...] |
/freebsd-13-stable/contrib/ntp/sntp/libevent/include/event2/ |
H A D | bufferevent_ssl.h | 35 #include <event2/bufferevent.h> 47 SSL bufferevent. 57 Create a new SSL bufferevent to send its data over another bufferevent. 60 must also be the base for the underlying bufferevent. 65 @return A new bufferevent on success, or NULL on failure 68 struct bufferevent * 70 struct bufferevent *underlying, 76 Create a new SSL bufferevent to send its data over an SSL * on a socket. 83 @return A new bufferevent o [all...] |
H A D | bufferevent.h | 31 @file event2/bufferevent.h 38 A bufferevent provides input and output buffers that get filled and 39 drained automatically. The user of a bufferevent no longer deals 43 Once initialized, the bufferevent structure can be used repeatedly 46 When reading is enabled, the bufferevent will try to read from the 48 When writing is enabled, the bufferevent will try to write data onto its 56 <dd>A bufferevent that reads and writes data onto a network 65 <dd>A bufferevent that transforms data, and sends or receives it 66 over another underlying bufferevent. Created with 70 <dd>A bufferevent tha 113 struct bufferevent struct [all...] |
H A D | bufferevent_compat.h | 35 Create a new bufferevent for an fd. 46 Once initialized, the bufferevent structure can be used repeatedly with 49 When read enabled the bufferevent will try to read from the file descriptor 55 enabling the bufferevent for the first time. 71 @return a pointer to a newly allocated bufferevent struct, or NULL if an 75 struct bufferevent *bufferevent_new(evutil_socket_t fd, 82 @param bufev the bufferevent to be modified 86 void bufferevent_settimeout(struct bufferevent *bufev, 95 /** macro for getting access to the input buffer of a bufferevent */ 97 /** macro for getting access to the output buffer of a bufferevent */ [all...] |
/freebsd-13-stable/contrib/libevent/ |
H A D | bufferevent-internal.h | 55 reading or writing on a bufferevent. 61 On a filtering bufferevent, for writing: used when the underlying 62 bufferevent's write buffer has been filled up to its watermark 66 /* On a base bufferevent: when we have emptied a bandwidth buckets */ 68 /* On a base bufferevent: when we have emptied the group's bandwidth bucket. */ 70 /* On a socket bufferevent: can't do any operations while we're waiting for 73 /* On a base bufferevent, for reading: used when a filter has choked this 74 * (underlying) bufferevent because it has stopped reading from it. */ 124 * within every bufferevent lock: if you are holding this lock, do 125 * not assume you can lock another bufferevent [all...] |
H A D | bufferevent_filter.c | 52 #include "event2/bufferevent.h" 58 #include "bufferevent-internal.h" 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 *bufe [all...] |
H A D | bufferevent_pair.c | 37 #include "event2/bufferevent.h" 41 #include "bufferevent-internal.h" 53 /* Given a bufferevent that's really a bev part of a bufferevent_pair, 56 upcast(struct bufferevent *bev) 69 incref_and_lock(struct bufferevent *b) 79 decref_and_unlock(struct bufferevent *b) 116 struct bufferevent *pair[2]) 153 be_pair_transfer(struct bufferevent *src, struct bufferevent *dst, 225 be_pair_enable(struct bufferevent *bufe [all...] |
H A D | bufferevent.c | 52 #include "event2/bufferevent.h" 59 #include "bufferevent-internal.h" 63 static void bufferevent_cancel_all_(struct bufferevent *bev); 67 bufferevent_suspend_read_(struct bufferevent *bufev, bufferevent_suspend_flags what) 79 bufferevent_unsuspend_read_(struct bufferevent *bufev, bufferevent_suspend_flags what) 91 bufferevent_suspend_write_(struct bufferevent *bufev, bufferevent_suspend_flags what) 103 bufferevent_unsuspend_write_(struct bufferevent *bufev, bufferevent_suspend_flags what) 122 struct bufferevent *bufev = arg; 137 struct bufferevent *bufev = &bufev_private->bev; 170 struct bufferevent *bufe [all...] |
H A D | bufferevent_openssl.c | 56 #include "event2/bufferevent.h" 63 #include "bufferevent-internal.h" 72 * Define an OpenSSL bio that targets a bufferevent. 81 bufferevent. We'll want to use this only when none of OpenSSL's built-in 114 BIO_set_data(b, NULL); /* We'll be putting the bufferevent in this field.*/ 162 struct bufferevent *bufev = BIO_get_data(b); 194 struct bufferevent *bufev = BIO_get_data(b); 230 /* Method table for the bufferevent BIO */ 238 methods_bufferevent = BIO_meth_new(BIO_TYPE_LIBEVENT, "bufferevent"); 251 /* Create a new BIO to wrap communication around a bufferevent 254 BIO_new_bufferevent(struct bufferevent *bufferevent, int close_flag) argument [all...] |
H A D | iocp-internal.h | 188 struct bufferevent *bufferevent_async_new_(struct event_base *base, 192 void bufferevent_async_set_connected_(struct bufferevent *bev); 193 int bufferevent_async_can_connect_(struct bufferevent *bev); 194 int bufferevent_async_connect_(struct bufferevent *bev, evutil_socket_t fd,
|
H A D | bufferevent_async.c | 55 #include "event2/bufferevent.h" 63 #include "bufferevent-internal.h" 73 static int be_async_enable(struct bufferevent *, short); 74 static int be_async_disable(struct bufferevent *, short); 75 static void be_async_destruct(struct bufferevent *); 76 static int be_async_flush(struct bufferevent *, short, enum bufferevent_flush_mode); 77 static int be_async_ctrl(struct bufferevent *, enum bufferevent_ctrl_op, union bufferevent_ctrl_data *); 104 upcast(struct bufferevent *bev) 143 struct bufferevent *bev = &beva->bev.bev; 154 struct bufferevent *be [all...] |
H A D | bufferevent_sock.c | 65 #include "event2/bufferevent.h" 72 #include "bufferevent-internal.h" 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_data *); 85 static void be_socket_setfd(struct bufferevent *, evutil_socket_t); 100 bufferevent_socket_get_conn_address_(struct bufferevent *bev) 129 struct bufferevent *bufe [all...] |
/freebsd-13-stable/contrib/ntp/sntp/libevent/ |
H A D | bufferevent-internal.h | 44 reading or writing on a bufferevent. 50 On a filtering bufferevent, for writing: used when the underlying 51 bufferevent's write buffer has been filled up to its watermark 55 /* On a base bufferevent: when we have emptied a bandwidth buckets */ 57 /* On a base bufferevent: when we have emptied the group's bandwidth bucket. */ 59 /* On a socket bufferevent: can't do any operations while we're waiting for 62 /* On a base bufferevent, for reading: used when a filter has choked this 63 * (underlying) bufferevent because it has stopped reading from it. */ 113 * within every bufferevent lock: if you are holding this lock, do 114 * not assume you can lock another bufferevent [all...] |
H A D | bufferevent_filter.c | 52 #include "event2/bufferevent.h" 58 #include "bufferevent-internal.h" 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 *bufe [all...] |
H A D | bufferevent_pair.c | 37 #include "event2/bufferevent.h" 41 #include "bufferevent-internal.h" 53 /* Given a bufferevent that's really a bev part of a bufferevent_pair, 56 upcast(struct bufferevent *bev) 69 incref_and_lock(struct bufferevent *b) 79 decref_and_unlock(struct bufferevent *b) 116 struct bufferevent *pair[2]) 153 be_pair_transfer(struct bufferevent *src, struct bufferevent *dst, 225 be_pair_enable(struct bufferevent *bufe [all...] |
H A D | bufferevent.c | 53 #include "event2/bufferevent.h" 60 #include "bufferevent-internal.h" 64 static void bufferevent_cancel_all_(struct bufferevent *bev); 68 bufferevent_suspend_read_(struct bufferevent *bufev, bufferevent_suspend_flags what) 80 bufferevent_unsuspend_read_(struct bufferevent *bufev, bufferevent_suspend_flags what) 92 bufferevent_suspend_write_(struct bufferevent *bufev, bufferevent_suspend_flags what) 104 bufferevent_unsuspend_write_(struct bufferevent *bufev, bufferevent_suspend_flags what) 123 struct bufferevent *bufev = arg; 138 struct bufferevent *bufev = &bufev_private->bev; 171 struct bufferevent *bufe [all...] |
H A D | iocp-internal.h | 188 struct bufferevent *bufferevent_async_new_(struct event_base *base, 192 void bufferevent_async_set_connected_(struct bufferevent *bev); 193 int bufferevent_async_can_connect_(struct bufferevent *bev); 194 int bufferevent_async_connect_(struct bufferevent *bev, evutil_socket_t fd,
|
H A D | bufferevent_async.c | 55 #include "event2/bufferevent.h" 63 #include "bufferevent-internal.h" 73 static int be_async_enable(struct bufferevent *, short); 74 static int be_async_disable(struct bufferevent *, short); 75 static void be_async_destruct(struct bufferevent *); 76 static int be_async_flush(struct bufferevent *, short, enum bufferevent_flush_mode); 77 static int be_async_ctrl(struct bufferevent *, enum bufferevent_ctrl_op, union bufferevent_ctrl_data *); 104 upcast(struct bufferevent *bev) 143 struct bufferevent *bev = &beva->bev.bev; 154 struct bufferevent *be [all...] |
H A D | bufferevent_sock.c | 65 #include "event2/bufferevent.h" 72 #include "bufferevent-internal.h" 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_adj_timeouts(struct bufferevent *); 83 static int be_socket_flush(struct bufferevent *, short, enum bufferevent_flush_mode); 84 static int be_socket_ctrl(struct bufferevent *, enum bufferevent_ctrl_op, union bufferevent_ctrl_data *); 86 static void be_socket_setfd(struct bufferevent *, evutil_socket_t); 108 struct bufferevent *bufe [all...] |
/freebsd-13-stable/contrib/libevent/sample/ |
H A D | hello-world.c | 22 #include <event2/bufferevent.h> 34 static void conn_writecb(struct bufferevent *, void *); 35 static void conn_eventcb(struct bufferevent *, short, void *); 93 struct bufferevent *bev; 97 fprintf(stderr, "Error constructing bufferevent!"); 109 conn_writecb(struct bufferevent *bev, void *user_data) 119 conn_eventcb(struct bufferevent *bev, short events, void *user_data)
|
H A D | le-proxy.c | 3 with Libevent's bufferevent layer. 28 #include <event2/bufferevent.h> 48 static void drained_writecb(struct bufferevent *bev, void *ctx); 49 static void eventcb(struct bufferevent *bev, short what, void *ctx); 52 readcb(struct bufferevent *bev, void *ctx) 54 struct bufferevent *partner = ctx; 79 drained_writecb(struct bufferevent *bev, void *ctx) 81 struct bufferevent *partner = ctx; 92 close_on_finished_writecb(struct bufferevent *bev, void *ctx) 102 eventcb(struct bufferevent *be [all...] |
/freebsd-13-stable/contrib/pf/libevent/ |
H A D | evbuffer.c | 50 void bufferevent_setwatermark(struct bufferevent *, short, size_t, size_t); 75 struct bufferevent *bufev = arg; 91 struct bufferevent *bufev = arg; 154 struct bufferevent *bufev = arg; 221 struct bufferevent * 225 struct bufferevent *bufev; 227 if ((bufev = calloc(1, sizeof(struct bufferevent))) == NULL) 261 bufferevent_priority_set(struct bufferevent *bufev, int priority) 274 bufferevent_free(struct bufferevent *bufev) 291 bufferevent_write(struct bufferevent *bufe [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, 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 *bufe [all...] |