/freebsd-current/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 | 37 Create a new bufferevent for an fd. 48 Once initialized, the bufferevent structure can be used repeatedly with 51 When read enabled the bufferevent will try to read from the file descriptor 57 enabling the bufferevent for the first time. 73 @return a pointer to a newly allocated bufferevent struct, or NULL if an 78 struct bufferevent *bufferevent_new(evutil_socket_t fd, 85 @param bufev the bufferevent to be modified 90 void bufferevent_settimeout(struct bufferevent *bufev, 99 /** macro for getting access to the input buffer of a bufferevent */ 101 /** macro for getting access to the output buffer of a bufferevent */ [all...] |
/freebsd-current/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 | 37 Create a new bufferevent for an fd. 48 Once initialized, the bufferevent structure can be used repeatedly with 51 When read enabled the bufferevent will try to read from the file descriptor 57 enabling the bufferevent for the first time. 73 @return a pointer to a newly allocated bufferevent struct, or NULL if an 78 struct bufferevent *bufferevent_new(evutil_socket_t fd, 85 @param bufev the bufferevent to be modified 90 void bufferevent_settimeout(struct bufferevent *bufev, 99 /** macro for getting access to the input buffer of a bufferevent */ 101 /** macro for getting access to the output buffer of a bufferevent */ [all...] |
/freebsd-current/contrib/ntp/sntp/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) 78 bufferevent_unsuspend_read_(struct bufferevent *bufev, bufferevent_suspend_flags what) 89 bufferevent_suspend_write_(struct bufferevent *bufev, bufferevent_suspend_flags what) 100 bufferevent_unsuspend_write_(struct bufferevent *bufev, bufferevent_suspend_flags what) 111 * Sometimes bufferevent's implementation can overrun high watermarks 121 static void bufferevent_inbuf_wm_check(struct bufferevent *bev) 140 struct bufferevent *bufe [all...] |
H A D | bufferevent_async.c | 56 #include "event2/bufferevent.h" 64 #include "bufferevent-internal.h" 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_data *); 105 be_async_run_eventcb(struct bufferevent *bev, short what, int options) 109 be_async_trigger_nolock(struct bufferevent *bev, short what, int options) 126 upcast(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) 107 bufferevent_socket_set_conn_address_fd_(struct bufferevent *be [all...] |
H A D | bufferevent_openssl.c | 56 #include "event2/bufferevent.h" 63 #include "bufferevent-internal.h" 71 * Define an OpenSSL bio that targets a bufferevent. 80 bufferevent. We'll want to use this only when none of OpenSSL's built-in 113 BIO_set_data(b, NULL); /* We'll be putting the bufferevent in this field.*/ 161 struct bufferevent *bufev = BIO_get_data(b); 193 struct bufferevent *bufev = BIO_get_data(b); 229 /* Method table for the bufferevent BIO */ 237 methods_bufferevent = BIO_meth_new(BIO_TYPE_LIBEVENT, "bufferevent"); 250 /* Create a new BIO to wrap communication around a bufferevent 253 BIO_new_bufferevent(struct bufferevent *bufferevent) argument [all...] |
/freebsd-current/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) 78 bufferevent_unsuspend_read_(struct bufferevent *bufev, bufferevent_suspend_flags what) 89 bufferevent_suspend_write_(struct bufferevent *bufev, bufferevent_suspend_flags what) 100 bufferevent_unsuspend_write_(struct bufferevent *bufev, bufferevent_suspend_flags what) 111 * Sometimes bufferevent's implementation can overrun high watermarks 121 static void bufferevent_inbuf_wm_check(struct bufferevent *bev) 140 struct bufferevent *bufe [all...] |
H A D | bufferevent_async.c | 56 #include "event2/bufferevent.h" 64 #include "bufferevent-internal.h" 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_data *); 105 be_async_run_eventcb(struct bufferevent *bev, short what, int options) 109 be_async_trigger_nolock(struct bufferevent *bev, short what, int options) 126 upcast(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) 107 bufferevent_socket_set_conn_address_fd_(struct bufferevent *be [all...] |
/freebsd-current/contrib/ntp/sntp/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 *); 92 struct bufferevent *bev; 96 fprintf(stderr, "Error constructing bufferevent!"); 108 conn_writecb(struct bufferevent *bev, void *user_data) 118 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> 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) 55 struct bufferevent *partner = ctx; 80 drained_writecb(struct bufferevent *bev, void *ctx) 82 struct bufferevent *partner = ctx; 93 close_on_finished_writecb(struct bufferevent *bev, void *ctx) 103 eventcb(struct bufferevent *be [all...] |
/freebsd-current/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 *); 92 struct bufferevent *bev; 96 fprintf(stderr, "Error constructing bufferevent!"); 108 conn_writecb(struct bufferevent *bev, void *user_data) 118 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> 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) 55 struct bufferevent *partner = ctx; 80 drained_writecb(struct bufferevent *bev, void *ctx) 82 struct bufferevent *partner = ctx; 93 close_on_finished_writecb(struct bufferevent *bev, void *ctx) 103 eventcb(struct bufferevent *be [all...] |
/freebsd-current/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...] |