Searched refs:bufferevent (Results 1 - 25 of 36) sorted by relevance

12

/freebsd-11-stable/contrib/ntp/sntp/libevent/include/event2/
H A Dbufferevent_ssl.h35 #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 Dbufferevent.h31 @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 Dbufferevent_compat.h35 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...]
H A Dbufferevent_struct.h63 Shared implementation of a bufferevent.
70 struct bufferevent { struct
71 /** Event base for which this bufferevent was created. */
74 bufferevent behaves. */
79 bufferevent. */
83 bufferevent. */
86 /** An input buffer. Only the bufferevent is allowed to add data to
90 /** An input buffer. Only the bufferevent is allowed to drain data
/freebsd-11-stable/contrib/ntp/sntp/libevent/
H A Dbufferevent-internal.h44 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 Dbufferevent_filter.c52 #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 Dbufferevent_pair.c37 #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 Dbufferevent.c53 #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 Diocp-internal.h188 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 Dbufferevent_async.c55 #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 Dbufferevent_sock.c65 #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...]
H A Dbufferevent_openssl.c56 #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
114 b->ptr = NULL; /* We'll be putting the bufferevent in this field.*/
165 struct bufferevent *bufev = b->ptr;
197 struct bufferevent *bufev = b->ptr;
233 /* Method table for the bufferevent BIO */
235 BIO_TYPE_LIBEVENT, "bufferevent",
253 /* Create a new BIO to wrap communication around a bufferevent
256 BIO_new_bufferevent(struct bufferevent *bufferevent, int close_flag) argument
[all...]
H A Dratelim-internal.h36 * currently willing to read or write on a given bufferevent or group of
87 int bufferevent_remove_from_rate_limit_group_internal_(struct bufferevent *bev,
H A Devbuffer-internal.h78 struct bufferevent;
153 /** The parent bufferevent object this evbuffer belongs to.
155 struct bufferevent *parent;
337 /** Set the parent bufferevent object for buf to bev */
338 void evbuffer_set_parent_(struct evbuffer *buf, struct bufferevent *bev);
H A Dhttp-internal.h60 struct bufferevent *bufev;
173 struct bufferevent* (*bevcb)(struct event_base *, void *);
/freebsd-11-stable/contrib/pf/libevent/
H A Devbuffer.c50 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 Devent.h231 struct bufferevent;
232 typedef void (*evbuffercb)(struct bufferevent *, void *);
233 typedef void (*everrorcb)(struct bufferevent *, short what, void *);
240 struct bufferevent { struct
261 struct bufferevent *bufferevent_new(int fd,
263 int bufferevent_base_set(struct event_base *base, struct bufferevent *bufev);
264 int bufferevent_priority_set(struct bufferevent *bufev, int pri);
265 void bufferevent_free(struct bufferevent *bufev);
266 int bufferevent_write(struct bufferevent *bufev, void *data, size_t size);
267 int bufferevent_write_buffer(struct bufferevent *bufe
[all...]
/freebsd-11-stable/contrib/ntp/sntp/libevent/test/
H A Dtest-fdleak.c47 #include "event2/bufferevent.h"
82 server_read_cb(struct bufferevent *bev, void *ctx)
91 /* Wait for an EOF and then free the bufferevent */
93 server_event_cb(struct bufferevent *bev, short events, void *ctx)
96 my_perror("Error from bufferevent");
109 struct bufferevent *bev = bufferevent_socket_new(base, sock,
168 client_read_cb(struct bufferevent *bev, void *ctx)
190 client_event_cb(struct bufferevent *bev, short events, void *ctx)
207 struct bufferevent *bev = bufferevent_socket_new(base, -1,
H A Dregress_bufferevent.c71 #include "event2/bufferevent.h"
77 #include "bufferevent-internal.h"
88 * simple bufferevent test
92 readcb(struct bufferevent *bev, void *arg)
112 writecb(struct bufferevent *bev, void *arg)
120 errorcb(struct bufferevent *bev, short what, void *arg)
128 struct bufferevent *bev1 = NULL, *bev2 = NULL;
133 struct bufferevent *pair[2];
323 struct bufferevent *pair[2];
337 * test watermarks and bufferevent
[all...]
H A Dbench_httpclient.c46 #include "event2/bufferevent.h"
69 static void readcb(struct bufferevent *b, void *arg);
70 static void errorcb(struct bufferevent *b, short what, void *arg);
73 readcb(struct bufferevent *b, void *arg)
84 errorcb(struct bufferevent *b, short what, void *arg)
135 struct bufferevent *b;
H A Dtest-ratelim.c46 #include "event2/bufferevent.h"
105 struct bufferevent **bevs;
112 loud_writecb(struct bufferevent *bev, void *ctx)
126 discard_readcb(struct bufferevent *bev, void *ctx)
136 write_on_connectedcb(struct bufferevent *bev, short what, void *ctx)
146 echo_readcb(struct bufferevent *bev, void *ctx)
157 echo_writecb(struct bufferevent *bev, void *ctx)
165 echo_eventcb(struct bufferevent *bev, short what, void *ctx)
179 struct bufferevent *bev;
201 struct bufferevent *be
[all...]
H A Dregress_ssl.c200 respond_to_number(struct bufferevent *bev, void *ctx)
230 done_writing_cb(struct bufferevent *bev, void *ctx)
241 eventcb(struct bufferevent *bev, short what, void *ctx)
274 open_ssl_bufevs(struct bufferevent **bev1_out, struct bufferevent **bev2_out,
276 evutil_socket_t *fd_pair, struct bufferevent **underlying_pair)
303 struct bufferevent *bev1, *bev2;
310 struct bufferevent *bev_ll[2] = { NULL, NULL };
394 struct bufferevent *bev;
424 struct bufferevent *be
[all...]
H A Dregress_zlib.c56 #include "event2/bufferevent.h"
239 * simple bufferevent test (over transparent zlib treatment)
243 readcb(struct bufferevent *bev, void *arg)
263 writecb(struct bufferevent *bev, void *arg)
271 errorcb(struct bufferevent *bev, short what, void *arg)
279 struct bufferevent *bev1=NULL, *bev2=NULL;
/freebsd-11-stable/contrib/ntp/sntp/libevent/include/
H A Devent.h75 #include <event2/bufferevent.h>
/freebsd-11-stable/usr.sbin/ntp/libntpevent/
H A DMakefile8 SRCS= buffer.c bufferevent.c bufferevent_filter.c bufferevent_openssl.c \

Completed in 205 milliseconds

12