bufferevent Struct Reference

Shared implementation of a bufferevent. More...

#include <bufferevent_struct.h>


Data Fields

struct bufferevent_ops * be_ops
 Pointer to a table of function pointers to set up how this bufferevent behaves.
void * cbarg
short enabled
 Events that are currently enabled: currently EV_READ and EV_WRITE are supported.
everrorcb errorcb
struct event_base * ev_base
 Event base for which this bufferevent was created.
struct event ev_read
 A read event that triggers when a timeout has happened or a socket is ready to read data.
struct event ev_write
 A write event that triggers when a timeout has happened or a socket is ready to write data.
struct evbuffer * input
 An input buffer.
struct evbuffer * output
 An input buffer.
evbuffercb readcb
struct timeval timeout_read
struct timeval timeout_write
struct event_watermark wm_read
struct event_watermark wm_write
evbuffercb writecb


Detailed Description

Shared implementation of a bufferevent.

This type is exposed only because it was exposed in previous versions, and some people's code may rely on manipulating it. Otherwise, you should really not rely on the layout, size, or contents of this structure: it is fairly volatile, and WILL change in future versions of the code.


Field Documentation

struct bufferevent_ops* bufferevent::be_ops [read]

Pointer to a table of function pointers to set up how this bufferevent behaves.

Events that are currently enabled: currently EV_READ and EV_WRITE are supported.

struct event_base* bufferevent::ev_base [read]

Event base for which this bufferevent was created.

struct event bufferevent::ev_read [read]

A read event that triggers when a timeout has happened or a socket is ready to read data.

Only used by some subtypes of bufferevent.

struct event bufferevent::ev_write [read]

A write event that triggers when a timeout has happened or a socket is ready to write data.

Only used by some subtypes of bufferevent.

struct evbuffer* bufferevent::input [read]

An input buffer.

Only the bufferevent is allowed to add data to this buffer, though the user is allowed to drain it.

struct evbuffer* bufferevent::output [read]

An input buffer.

Only the bufferevent is allowed to drain data from this buffer, though the user is allowed to add it.


The documentation for this struct was generated from the following file:

Generated on Fri Apr 17 21:33:56 2009 for libevent by  doxygen 1.5.7