An LLIOPipe implementation which writes to a socket. More...
#include <lliosocket.h>
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. |
An LLIOPipe implementation which writes to a socket.
An instance of a socket writer wraps around an LLSocket and performs non-blocking writes of the data passed in.
LLIOSocketWriter::LLIOSocketWriter | ( | LLSocket::ptr_t | socket | ) |
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.
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 |
Implements LLIOPipe.