Made to Order Software Corporation Logo

LLChatLib: LLIOSocketWriter Class Reference

LLIOSocketWriter Class Reference

An LLIOPipe implementation which writes to a socket. More...

#include <lliosocket.h>

Inheritance diagram for LLIOSocketWriter:
Collaboration diagram for LLIOSocketWriter:

List of all members.

Public Member Functions

 LLIOSocketWriter (LLSocket::ptr_t socket)

Protected Member Functions

virtual EStatus process_impl (const LLChannelDescriptors &channels, buffer_ptr_t &buffer, bool &eos, LLSD &context, LLPumpIO *pump)
 Write the data in buffer to the socket.


Detailed Description

An LLIOPipe implementation which writes to a socket.

See also:
LLIOPipe

An instance of a socket writer wraps around an LLSocket and performs non-blocking writes of the data passed in.


Constructor & Destructor Documentation

LLIOSocketWriter::LLIOSocketWriter ( LLSocket::ptr_t  socket  ) 

Member Function Documentation

LLIOPipe::EStatus LLIOSocketWriter::process_impl ( const LLChannelDescriptors channels,
buffer_ptr_t buffer,
bool &  eos,
LLSD context,
LLPumpIO pump 
) [protected, virtual]

Write the data in buffer to the socket.

Since the socket pipe must exist for process to make any sense, this method will return STATUS_PRECONDITION_NOT_MET if it is not known.

Parameters:
buffer Pointer to a buffer which needs processing.
bytes Number of bytes to in buffer to process.
eos True if this function is the last.
read Number of bytes actually processed.
pump The pump which is calling process. May be NULL.
context A data structure to pass structured data
Returns:
A return code for the write.

Implements LLIOPipe.

Here is the call graph for this function:


The documentation for this class was generated from the following files:
  • /home/doug/src/oss/slitechat/trunk/LLChatLib/llmessage/lliosocket.h
  • /home/doug/src/oss/slitechat/trunk/LLChatLib/llmessage/lliosocket.cpp
Generated on Thu Sep 23 17:18:42 2010 for LLChatLib by  doxygen 1.6.3