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

12

/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/transmission/libevent-2.0.20-stable/include/event2/
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
111 struct bufferevent struct
[all...]
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
67 struct bufferevent *
69 struct bufferevent *underlying,
75 Create a new SSL bufferevent to send its data over an SSL * on a socket.
82 @return A new bufferevent o
[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
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/transmission/libevent-2.0.20-stable/
H A Dbufferevent-internal.h42 reading or writing on a bufferevent.
48 On a filtering bufferevent, for writing: used when the underlying
49 bufferevent's write buffer has been filled up to its watermark
53 /* On a base bufferevent: when we have emptied a bandwidth buckets */
55 /* On a base bufferevent: when we have emptied the group's bandwidth bucket. */
57 /* On a socket bufferevent: can't do any operations while we're waiting for
60 /* On a base bufferevent, for reading: used when a filter has choked this
61 * (underlying) bufferevent because it has stopped reading from it. */
107 * within every bufferevent lock: if you are holding this lock, do
108 * not assume you can lock another bufferevent
[all...]
H A Dbufferevent_filter.c50 #include "event2/bufferevent.h"
56 #include "bufferevent-internal.h"
60 static int be_filter_enable(struct bufferevent *, short);
61 static int be_filter_disable(struct bufferevent *, short);
62 static void be_filter_destruct(struct bufferevent *);
64 static void be_filter_readcb(struct bufferevent *, void *);
65 static void be_filter_writecb(struct bufferevent *, void *);
66 static void be_filter_eventcb(struct bufferevent *, short, void *);
67 static int be_filter_flush(struct bufferevent *bufev,
69 static int be_filter_ctrl(struct bufferevent *, enu
[all...]
H A Dbufferevent_pair.c37 #include "event2/bufferevent.h"
41 #include "bufferevent-internal.h"
51 /* Given a bufferevent that's really a bev part of a bufferevent_pair,
54 upcast(struct bufferevent *bev)
67 incref_and_lock(struct bufferevent *b)
77 decref_and_unlock(struct bufferevent *b)
114 struct bufferevent *pair[2])
151 be_pair_transfer(struct bufferevent *src, struct bufferevent *dst,
230 be_pair_enable(struct bufferevent *bufe
[all...]
H A Dbufferevent.c52 #include "event2/bufferevent.h"
58 #include "bufferevent-internal.h"
62 static void _bufferevent_cancel_all(struct bufferevent *bev);
66 bufferevent_suspend_read(struct bufferevent *bufev, bufferevent_suspend_flags what)
78 bufferevent_unsuspend_read(struct bufferevent *bufev, bufferevent_suspend_flags what)
90 bufferevent_suspend_write(struct bufferevent *bufev, bufferevent_suspend_flags what)
102 bufferevent_unsuspend_write(struct bufferevent *bufev, bufferevent_suspend_flags what)
121 struct bufferevent *bufev = arg;
136 struct bufferevent *bufev = &bufev_private->bev;
169 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_openssl.c50 #include "event2/bufferevent.h"
57 #include "bufferevent-internal.h"
65 * Define an OpenSSL bio that targets a bufferevent.
74 bufferevent. We'll want to use this only when none of OpenSSL's built-in
108 b->ptr = NULL; /* We'll be putting the bufferevent in this field.*/
159 struct bufferevent *bufev = b->ptr;
191 struct bufferevent *bufev = b->ptr;
227 /* Method table for the bufferevent BIO */
229 BIO_TYPE_LIBEVENT, "bufferevent",
247 /* Create a new BIO to wrap communication around a bufferevent
250 BIO_new_bufferevent(struct bufferevent *bufferevent, int close_flag) argument
[all...]
H A Dbufferevent_async.c54 #include "event2/bufferevent.h"
62 #include "bufferevent-internal.h"
72 static int be_async_enable(struct bufferevent *, short);
73 static int be_async_disable(struct bufferevent *, short);
74 static void be_async_destruct(struct bufferevent *);
75 static int be_async_flush(struct bufferevent *, short, enum bufferevent_flush_mode);
76 static int be_async_ctrl(struct bufferevent *, enum bufferevent_ctrl_op, union bufferevent_ctrl_data *);
102 upcast(struct bufferevent *bev)
141 struct bufferevent *bev = &beva->bev.bev;
152 struct bufferevent *be
[all...]
H A Dbufferevent_sock.c64 #include "event2/bufferevent.h"
71 #include "bufferevent-internal.h"
78 static int be_socket_enable(struct bufferevent *, short);
79 static int be_socket_disable(struct bufferevent *, short);
80 static void be_socket_destruct(struct bufferevent *);
81 static int be_socket_adj_timeouts(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);
106 struct bufferevent *bufe
[all...]
H A Devbuffer-internal.h76 struct bufferevent;
151 /** The parent bufferevent object this evbuffer belongs to.
153 struct bufferevent *parent;
272 /** Set the parent bufferevent object for buf to bev */
273 void evbuffer_set_parent(struct evbuffer *buf, struct bufferevent *bev);
H A Devent.h75 #include <event2/bufferevent.h>
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,
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/libevent-1.4.14b-stable/
H A Devbuffer.c79 struct bufferevent *bufev = arg;
95 struct bufferevent *bufev = arg;
166 struct bufferevent *bufev = arg;
233 struct bufferevent *
237 struct bufferevent *bufev;
239 if ((bufev = calloc(1, sizeof(struct bufferevent))) == NULL)
269 bufferevent_setcb(struct bufferevent *bufev,
280 bufferevent_setfd(struct bufferevent *bufev, int fd)
296 bufferevent_priority_set(struct bufferevent *bufev, int priority)
309 bufferevent_free(struct bufferevent *bufe
[all...]
H A Devent.h70 @section bufferevent I/O Buffers
78 Once initialized via bufferevent_new(), the bufferevent structure can be
83 When read enabled the bufferevent will try to read from the file descriptor
745 struct bufferevent;
746 typedef void (*evbuffercb)(struct bufferevent *, void *);
747 typedef void (*everrorcb)(struct bufferevent *, short what, void *);
755 struct bufferevent { struct
780 Create a new bufferevent.
788 Once initialized, the bufferevent structure can be used repeatedly with
791 When read enabled the bufferevent wil
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/transmission/libevent-2.0.20-stable/sample/
H A Dhello-world.c22 #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 Dle-proxy.c3 with Libevent's bufferevent layer.
23 #include <event2/bufferevent.h>
42 static void drained_writecb(struct bufferevent *bev, void *ctx);
43 static void eventcb(struct bufferevent *bev, short what, void *ctx);
46 readcb(struct bufferevent *bev, void *ctx)
48 struct bufferevent *partner = ctx;
73 drained_writecb(struct bufferevent *bev, void *ctx)
75 struct bufferevent *partner = ctx;
86 close_on_finished_writecb(struct bufferevent *bev, void *ctx)
96 eventcb(struct bufferevent *be
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/transmission/libevent-2.0.20-stable/test/
H A Dbench_httpclient.c43 #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)
131 struct bufferevent *b;
H A Dregress_ssl.c166 respond_to_number(struct bufferevent *bev, void *ctx)
195 done_writing_cb(struct bufferevent *bev, void *ctx)
206 eventcb(struct bufferevent *bev, short what, void *ctx)
239 open_ssl_bufevs(struct bufferevent **bev1_out, struct bufferevent **bev2_out,
241 int *fd_pair, struct bufferevent **underlying_pair)
268 struct bufferevent *bev1, *bev2;
275 struct bufferevent *bev_ll[2] = { NULL, NULL };
352 struct bufferevent *bev;
382 struct bufferevent *be
[all...]
H A Dregress_bufferevent.c70 #include "event2/bufferevent.h"
76 #include "bufferevent-internal.h"
85 * simple bufferevent test
89 readcb(struct bufferevent *bev, void *arg)
109 writecb(struct bufferevent *bev, void *arg)
117 errorcb(struct bufferevent *bev, short what, void *arg)
125 struct bufferevent *bev1 = NULL, *bev2 = NULL;
130 struct bufferevent *pair[2];
185 * test watermarks and bufferevent
189 wm_readcb(struct bufferevent *be
[all...]
H A Dtest-ratelim.c45 #include "event2/bufferevent.h"
87 loud_writecb(struct bufferevent *bev, void *ctx)
105 discard_readcb(struct bufferevent *bev, void *ctx)
115 write_on_connectedcb(struct bufferevent *bev, short what, void *ctx)
125 echo_readcb(struct bufferevent *bev, void *ctx)
136 echo_writecb(struct bufferevent *bev, void *ctx)
144 echo_eventcb(struct bufferevent *bev, short what, void *ctx)
158 struct bufferevent *bev;
180 struct bufferevent **bevs;
258 bevs = calloc(cfg_n_connections, sizeof(struct bufferevent *));
[all...]
H A Dregress_zlib.c56 #include "event2/bufferevent.h"
236 * simple bufferevent test (over transparent zlib treatment)
240 readcb(struct bufferevent *bev, void *arg)
260 writecb(struct bufferevent *bev, void *arg)
268 errorcb(struct bufferevent *bev, short what, void *arg)
276 struct bufferevent *bev1=NULL, *bev2=NULL;
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/transmission/libevent-2.0.20-stable/include/
H A DMakefile.am12 event2/bufferevent.h \

Completed in 129 milliseconds

12