eq::net::BufferConnection Class Reference

#include <bufferConnection.h>

Inheritance diagram for eq::net::BufferConnection:

Inheritance graph
[legend]
Collaboration diagram for eq::net::BufferConnection:

Collaboration graph
[legend]

List of all members.


Detailed Description

A proxy connection buffering outgoing data into a memory region.

Definition at line 18 of file bufferConnection.h.


Public Member Functions

void sendBuffer (ConnectionPtr connection)
uint64_t getSize () const

Protected Member Functions

virtual int64_t read (void *buffer, const uint64_t bytes)
 Read data from the connection.
virtual int64_t write (const void *buffer, const uint64_t bytes) const
 Write data to the connection.

Member Function Documentation

virtual int64_t eq::net::BufferConnection::read ( void *  buffer,
const uint64_t  bytes 
) [inline, protected, virtual]

Read data from the connection.

Note the the a return value of 0 is not an error condition, it means that no data was pending on a non-blocking connection.

Parameters:
buffer the buffer for saving the message.
bytes the number of bytes to read.
Returns:
the number of bytes read, or -1 upon error.

Implements eq::net::Connection.

Definition at line 30 of file bufferConnection.h.

int64_t eq::net::BufferConnection::write ( const void *  buffer,
const uint64_t  bytes 
) const [protected, virtual]

Write data to the connection.

Parameters:
buffer the buffer containing the message.
bytes the number of bytes to write.
Returns:
the number of bytes written, or -1 upon error.

Implements eq::net::Connection.

Definition at line 37 of file bufferConnection.cpp.


The documentation for this class was generated from the following files:
Generated on Sat Dec 6 12:01:50 2008 for Equalizer 0.6 by  doxygen 1.5.5