HomeSort by relevance Sort by last modified time
    Searched refs:bufferevent (Results 1 - 25 of 32) sorted by null

1 2

  /external/libevent/include/event2/
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 on success, or NULL on failure
    [all...]
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 that uses the openssl library to send an
113 struct bufferevent struct
    [all...]
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...]
bufferevent_struct.h 63 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
  /external/libevent/
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...]
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 *bufev
    [all...]
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 *bufev, short events
    [all...]
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 *bufev = &bufev_private->bev
    [all...]
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. If close_fla
    [all...]
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,
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 *bev = &beva->bev.bev
    [all...]
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 *bufev = arg
    [all...]
ratelim-internal.h 36 * 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,
evbuffer-internal.h 78 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);
http-internal.h 60 struct bufferevent *bufev;
171 struct bufferevent* (*bevcb)(struct event_base *, void *);
bufferevent_ratelim.c 38 #include "event2/bufferevent.h"
44 #include "bufferevent-internal.h"
235 * particular bufferevent while suspending the whole
348 /** Stop reading on every bufferevent in <b>g</b> */
359 the bufferevent locks. If we are unable to lock any individual
360 bufferevent, it will find out later when it looks at its limit
373 /** Stop writing on every bufferevent in <b>g</b> */
391 /** Timer callback invoked on a single bufferevent with one or more exhausted
441 /** Helper: grab a random element from a bufferevent group.
560 bufferevent_set_rate_limit(struct bufferevent *bev
    [all...]
  /external/libevent/sample/
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)
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 *bev, short what, void *ctx
    [all...]
  /external/libevent/test/
test-fdleak.c 47 #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,
regress_bufferevent.c 71 #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;
134 struct bufferevent *pair[2];
336 struct bufferevent *pair[2];
350 * test watermarks and bufferevent
    [all...]
bench_httpclient.c 46 #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;
test-ratelim.c 46 #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 *bev = arg
    [all...]
regress_ssl.c 235 bufferevent_openssl_check_fd(struct bufferevent *bev, int filter)
249 bufferevent_openssl_check_freed(struct bufferevent *bev)
259 respond_to_number(struct bufferevent *bev, void *ctx)
293 done_writing_cb(struct bufferevent *bev, void *ctx)
304 eventcb(struct bufferevent *bev, short what, void *ctx)
365 open_ssl_bufevs(struct bufferevent **bev1_out, struct bufferevent **bev2_out,
367 evutil_socket_t *fd_pair, struct bufferevent **underlying_pair,
399 struct bufferevent *bev1, *bev2;
404 struct bufferevent *bev_ll[2] = { NULL, NULL }
    [all...]
regress_zlib.c 56 #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;
  /external/libevent/include/
event.h 73 #include <event2/bufferevent.h>

Completed in 501 milliseconds

1 2