#include <lliosocket.h>
Inheritance diagram for LLIOServerSocket:
Public Types | |
typedef LLSocket::ptr_t | socket_t |
typedef boost::shared_ptr< LLChainIOFactory > | factory_t |
Public Member Functions | |
LLIOServerSocket (apr_pool_t *pool, socket_t listener, factory_t reactor) | |
virtual | ~LLIOServerSocket () |
void | setResponseTimeout (F32 timeout_secs) |
Set the timeout for the generated chains. | |
Protected Member Functions | |
virtual EStatus | process_impl (const LLChannelDescriptors &channels, buffer_ptr_t &buffer, bool &eos, LLSD &context, LLPumpIO *pump) |
Process the data in buffer. | |
Protected Attributes | |
apr_pool_t * | mPool |
socket_t | mListenSocket |
factory_t | mReactor |
bool | mInitialized |
F32 | mResponseTimeout |
Definition at line 296 of file lliosocket.h.
typedef boost::shared_ptr<LLChainIOFactory> LLIOServerSocket::factory_t |
Definition at line 300 of file lliosocket.h.
Definition at line 299 of file lliosocket.h.
LLIOServerSocket::LLIOServerSocket | ( | apr_pool_t * | pool, | |
LLIOServerSocket::socket_t | listener, | |||
factory_t | factory | |||
) |
LLIOServerSocket::~LLIOServerSocket | ( | ) | [virtual] |
LLIOPipe::EStatus LLIOServerSocket::process_impl | ( | const LLChannelDescriptors & | channels, | |
buffer_ptr_t & | buffer, | |||
bool & | eos, | |||
LLSD & | context, | |||
LLPumpIO * | pump | |||
) | [protected, virtual] |
Process the data in buffer.
Definition at line 509 of file lliosocket.cpp.
References LLPumpIO::addChain(), LLSocket::create(), lldebugs, llendl, llwarns, mInitialized, mListenSocket, mPool, mReactor, mResponseTimeout, LLMemType::MTYPE_IO_TCP, NULL, PUMP_DEBUG, LLPumpIO::setConditional(), LLIOPipe::STATUS_ERROR, and LLIOPipe::STATUS_OK.
Set the timeout for the generated chains.
This value is passed directly to the LLPumpIO::addChain() method. The default on construction is set to DEFAULT_CHAIN_EXPIRY_SECS which is a reasonable value for most applications based on this library. Avoid passing in NEVER_CHAIN_EXPIRY_SECS unless you have another method of harvesting chains.
timeout_secs | The seconds before timeout for the response chain. |
Definition at line 503 of file lliosocket.cpp.
References mResponseTimeout.
bool LLIOServerSocket::mInitialized [protected] |
socket_t LLIOServerSocket::mListenSocket [protected] |
apr_pool_t* LLIOServerSocket::mPool [protected] |
factory_t LLIOServerSocket::mReactor [protected] |
F32 LLIOServerSocket::mResponseTimeout [protected] |
Definition at line 337 of file lliosocket.h.
Referenced by process_impl(), and setResponseTimeout().