Home | History | Annotate | Download | only in libevent

Lines Matching refs:bufferevent

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. */
129 /** Fields for rate-limiting a single bufferevent. */
137 /** The rate-limiting group for this bufferevent, or NULL if it is
141 /* This bufferevent's current limits. */
143 /* Pointer to the rate-limit configuration for this bufferevent.
147 /* Timeout event used when one this bufferevent's buckets are
152 /** Parts of the bufferevent structure that are shared among all bufferevent
155 /** The underlying bufferevent structure. */
156 struct bufferevent bev;
161 /** If set, we should free the lock when we free the bufferevent. */
173 * getting around the bufferevent abstraction. */
199 /** The options this bufferevent was constructed with */
202 /** Current reference count for this bufferevent. */
205 /** Lock for this bufferevent. Shared by the inbuf and the outbuf.
217 /** Rate-limiting information for this bufferevent */
250 Implementation table for a bufferevent: holds function pointers and other
251 information to make the various bufferevent types work.
254 /** The name of the bufferevent's type. */
257 bufferevent structure?
262 struct bufferevent bev;
268 /** Enables one or more of EV_READ|EV_WRITE on a bufferevent. Does
272 int (*enable)(struct bufferevent *, short);
274 /** Disables one or more of EV_READ|EV_WRITE on a bufferevent. Does
278 int (*disable)(struct bufferevent *, short);
280 /** Detatches the bufferevent from related data structures. Called as
282 void (*unlink)(struct bufferevent *);
285 in this implementation. Called when the bufferevent is
288 void (*destruct)(struct bufferevent *);
290 /** Called when the timeouts on the bufferevent have changed.*/
291 int (*adj_timeouts)(struct bufferevent *);
294 int (*flush)(struct bufferevent *, short, enum bufferevent_flush_mode);
297 int (*ctrl)(struct bufferevent *, enum bufferevent_ctrl_op, union bufferevent_ctrl_data *);
316 /** Initialize the shared parts of a bufferevent. */
321 void bufferevent_suspend_read_(struct bufferevent *bufev, bufferevent_suspend_flags what);
324 void bufferevent_unsuspend_read_(struct bufferevent *bufev, bufferevent_suspend_flags what);
328 void bufferevent_suspend_write_(struct bufferevent *bufev, bufferevent_suspend_flags what);
331 void bufferevent_unsuspend_write_(struct bufferevent *bufev, bufferevent_suspend_flags what);
339 Disable a bufferevent. Equivalent to bufferevent_disable(), but
345 @param bufev the bufferevent to be disabled
350 int bufferevent_disable_hard_(struct bufferevent *bufev, short event);
352 /** Internal: Set up locking on a bufferevent. If lock is set, use it.
354 int bufferevent_enable_locking_(struct bufferevent *bufev, void *lock);
360 void bufferevent_incref_and_lock_(struct bufferevent *bufev);
363 * the bufferevent.*/
367 * unlocking it otherwise. Returns 1 if it freed the bufferevent. */
368 int bufferevent_decref_and_unlock_(struct bufferevent *bufev);
372 void bufferevent_run_readcb_(struct bufferevent *bufev, int options);
375 void bufferevent_run_writecb_(struct bufferevent *bufev, int options);
379 void bufferevent_run_eventcb_(struct bufferevent *bufev, short what, int options);
385 static inline void bufferevent_trigger_nolock_(struct bufferevent *bufev, short iotype, int options);
390 bufferevent_trigger_nolock_(struct bufferevent *bufev, short iotype, int options)
411 void bufferevent_init_generic_timeout_cbs_(struct bufferevent *bev);
416 int bufferevent_generic_adj_timeouts_(struct bufferevent *bev);
417 int bufferevent_generic_adj_existing_timeouts_(struct bufferevent *bev);
419 bufferevent *bev);
422 bufferevent_socket_get_conn_address_(struct bufferevent *bev);
444 /** Internal: Given a bufferevent, return its corresponding
452 /** Internal: Grab the lock (if any) on a bufferevent */
458 /** Internal: Release the lock (if any) on a bufferevent */