Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

indri::net::NetworkMessageStream Class Reference

#include <NetworkMessageStream.hpp>

List of all members.

Public Member Functions

 NetworkMessageStream (NetworkStream *stream)
void read (MessageStreamHandler &handler)
void request (indri::xml::XMLNode *messageNode)
void reply (indri::xml::XMLNode *replyNode)
void reply (const std::string &name, const void *buffer, unsigned int size)
void replyDone ()
void error (const std::string &errorMessage)
bool alive ()
indri::thread::Lockablemutex ()

Private Member Functions

int _findEOL ()
void _cleanBuffer ()
int _bufferLength ()

Private Attributes

indri::thread::Mutex _lock
indri::utility::Buffer _buffer
int _readPosition
int _writePosition

Constructor & Destructor Documentation

indri::net::NetworkMessageStream::NetworkMessageStream NetworkStream stream  ) 

Member Function Documentation

int indri::net::NetworkMessageStream::_bufferLength  )  [private]

void indri::net::NetworkMessageStream::_cleanBuffer  )  [private]

int indri::net::NetworkMessageStream::_findEOL  )  [private]

bool indri::net::NetworkMessageStream::alive  ) 

void indri::net::NetworkMessageStream::error const std::string &  errorMessage  ) 

indri::thread::Lockable & indri::net::NetworkMessageStream::mutex  ) 

void indri::net::NetworkMessageStream::read MessageStreamHandler handler  ) 

void indri::net::NetworkMessageStream::reply const std::string &  name,
const void *  buffer,
unsigned int  size

void indri::net::NetworkMessageStream::reply indri::xml::XMLNode replyNode  ) 

void indri::net::NetworkMessageStream::replyDone  ) 

void indri::net::NetworkMessageStream::request indri::xml::XMLNode messageNode  ) 

Member Data Documentation

indri::utility::Buffer indri::net::NetworkMessageStream::_buffer [private]

indri::thread::Mutex indri::net::NetworkMessageStream::_lock [private]

int indri::net::NetworkMessageStream::_readPosition [private]

NetworkStream* indri::net::NetworkMessageStream::_stream [private]

int indri::net::NetworkMessageStream::_writePosition [private]

The documentation for this class was generated from the following files:
Generated on Tue Jun 15 11:03:03 2010 for Lemur by doxygen 1.3.4