Data Fields

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.
bufferevent_event_cb 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.
bufferevent_data_cb readcb
struct timeval timeout_read
struct timeval timeout_write
struct event_watermark wm_read
struct event_watermark wm_write
bufferevent_data_cb 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

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

Event base for which this bufferevent was created.

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.

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

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

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:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines