Libevent Code Doxygen document
Public Attributes | List of all members
bufferevent Struct Reference

#include <bufferevent_struct.h>

Collaboration diagram for bufferevent:
Collaboration graph
[legend]

Public Attributes

struct event_baseev_base
 
const struct bufferevent_opsbe_ops
 
struct event ev_read
 
struct event ev_write
 
struct evbufferinput
 
struct evbufferoutput
 
struct event_watermark wm_read
 
struct event_watermark wm_write
 
bufferevent_data_cb readcb
 
bufferevent_data_cb writecb
 
bufferevent_event_cb errorcb
 
void * cbarg
 
struct timeval timeout_read
 
struct timeval timeout_write
 
short enabled
 

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.

Member Data Documentation

◆ be_ops

const struct bufferevent_ops* bufferevent::be_ops

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

◆ enabled

short bufferevent::enabled

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

◆ ev_base

struct event_base* bufferevent::ev_base

Event base for which this bufferevent was created.

◆ ev_read

struct event bufferevent::ev_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.

◆ ev_write

struct event bufferevent::ev_write

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.

◆ input

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.

◆ output

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: