User manual

old releases - latest release - trunk

ClientConnection::IntermediaryBuffer Struct Reference

Collaboration diagram for ClientConnection::IntermediaryBuffer:

List of all members.


Detailed Description

A small, uncomplicated intermediary send buffer, with no wrap-around.

Public Member Functions

 IntermediaryBuffer (int capacity)
bool is_empty () const throw ()
size_t get_bytes_available () const throw ()
size_t get_capacity_available () const throw ()
void clear () throw ()
const void * get_read_ptr () const throw ()

Public Attributes

uint8_t * m_buf
const size_t m_capacity
size_t m_rptr
 The index of the recv head into the buffer.
size_t m_wptr

Member Data Documentation

size_t m_rptr

The index of the recv head into the buffer.

Invariant:
m_rptr <= m_capacity


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