#include <lliosocket.h>
Inheritance diagram for LLIOSocketReader:
Public Member Functions | |
LLIOSocketReader (LLSocket::ptr_t socket) | |
~LLIOSocketReader () | |
Protected Member Functions | |
virtual EStatus | process_impl (const LLChannelDescriptors &channels, buffer_ptr_t &buffer, bool &eos, LLSD &context, LLPumpIO *pump) |
Process the data coming in the socket. | |
Protected Attributes | |
LLSocket::ptr_t | mSource |
std::vector< U8 > | mBuffer |
bool | mInitialized |
Definition at line 193 of file lliosocket.h.
LLIOSocketReader::LLIOSocketReader | ( | LLSocket::ptr_t | socket | ) |
LLIOSocketReader::~LLIOSocketReader | ( | ) |
LLIOPipe::EStatus LLIOSocketReader::process_impl | ( | const LLChannelDescriptors & | channels, | |
buffer_ptr_t & | buffer, | |||
bool & | eos, | |||
LLSD & | context, | |||
LLPumpIO * | pump | |||
) | [protected, virtual] |
Process the data coming in the socket.
Since the socket and next pipe must exist for process to make any sense, this method will return STATUS_PRECONDITION_NOT_MET unless if they are not known. If a STATUS_STOP returned by the next link in the chain, this reader will turn of the socket polling.
buffer | Pointer to a buffer which needs processing. Probably NULL. | |
bytes | Number of bytes to in buffer to process. Probably 0. | |
eos | True if this function is the last. Almost always false. | |
read | Number of bytes actually processed. | |
pump | The pump which is calling process. May be NULL. | |
context | A data structure to pass structured data |
Definition at line 258 of file lliosocket.cpp.
References ll_apr_warn_status(), lldebugs, llendl, mInitialized, mSource, LLMemType::MTYPE_IO_TCP, NULL, LLChannelDescriptors::out(), PUMP_DEBUG, LLPumpIO::setConditional(), LLIOPipe::STATUS_BREAK, LLIOPipe::STATUS_DONE, LLIOPipe::STATUS_ERROR, LLIOPipe::STATUS_OK, and LLIOPipe::STATUS_PRECONDITION_NOT_MET.
std::vector<U8> LLIOSocketReader::mBuffer [protected] |
Definition at line 229 of file lliosocket.h.
bool LLIOSocketReader::mInitialized [protected] |
LLSocket::ptr_t LLIOSocketReader::mSource [protected] |