OverSim
|
An RPC source represents a file descriptor to monitor. More...
#include <XmlRpcSource.h>
Public Member Functions | |
XmlRpcSource (int fd=-1, bool deleteOnClose=false) | |
Constructor. | |
virtual | ~XmlRpcSource () |
Destructor. | |
int | getfd () const |
Return the file descriptor being monitored. | |
void | setfd (int fd) |
Specify the file descriptor to monitor. | |
bool | getKeepOpen () const |
Return whether the file descriptor should be kept open if it is no longer monitored. | |
void | setKeepOpen (bool b=true) |
Specify whether the file descriptor should be kept open if it is no longer monitored. | |
virtual void | close () |
Close the owned fd. If deleteOnClose was specified at construction, the object is deleted. | |
virtual unsigned | handleEvent (unsigned eventType)=0 |
Return true to continue monitoring this source. |
Public Attributes | |
bool | _ssl |
SSL_CTX * | _ssl_ctx |
SSL * | _ssl_ssl |
SSL_METHOD * | _ssl_meth |
Private Attributes | |
int | _fd |
bool | _deleteOnClose |
bool | _keepOpen |
An RPC source represents a file descriptor to monitor.
Definition at line 46 of file XmlRpcSource.h.
XmlRpc::XmlRpcSource::XmlRpcSource | ( | int | fd = -1 , |
bool | deleteOnClose = false |
||
) |
Constructor.
fd | The socket file descriptor to monitor. |
deleteOnClose | If true, the object deletes itself when close is called. |
Definition at line 14 of file XmlRpcSource.cc.
|
virtual |
|
virtual |
Close the owned fd. If deleteOnClose was specified at construction, the object is deleted.
Reimplemented in XmlRpc::XmlRpcClient.
Definition at line 25 of file XmlRpcSource.cc.
Referenced by XmlRpc::XmlRpcServer::acceptConnection(), XmlRpc::XmlRpcServer::bindAndListen(), XmlRpc::XmlRpcClient::close(), XmlRpc::XmlRpcClient::readHeader(), XmlRpc::XmlRpcDispatch::waitForAndProcessEvents(), and XmlRpc::XmlRpcDispatch::work().
|
inline |
Return the file descriptor being monitored.
Definition at line 57 of file XmlRpcSource.h.
Referenced by XmlRpc::XmlRpcServer::acceptConnection(), XmlRpc::XmlRpcServer::getPort(), XmlRpc::XmlRpcServerConnection::readHeader(), XmlRpc::XmlRpcServerConnection::readRequest(), XmlRpc::XmlRpcDispatch::waitForAndProcessEvents(), and XmlRpc::XmlRpcServerConnection::writeResponse().
|
inline |
Return whether the file descriptor should be kept open if it is no longer monitored.
Definition at line 62 of file XmlRpcSource.h.
Referenced by XmlRpc::XmlRpcDispatch::waitForAndProcessEvents().
|
pure virtual |
Return true to continue monitoring this source.
Implemented in XmlRpc::XmlRpcClient, XmlRpc::XmlRpcServer, and XmlRpc::XmlRpcServerConnection.
Referenced by XmlRpc::XmlRpcDispatch::waitForAndProcessEvents().
|
inline |
Specify the file descriptor to monitor.
Definition at line 59 of file XmlRpcSource.h.
Referenced by XmlRpc::XmlRpcServer::bindAndListen().
|
inline |
Specify whether the file descriptor should be kept open if it is no longer monitored.
Definition at line 64 of file XmlRpcSource.h.
|
private |
Definition at line 85 of file XmlRpcSource.h.
Referenced by close().
|
private |
Definition at line 80 of file XmlRpcSource.h.
|
private |
Definition at line 88 of file XmlRpcSource.h.
Referenced by getKeepOpen(), and setKeepOpen().
bool XmlRpc::XmlRpcSource::_ssl |
Definition at line 73 of file XmlRpcSource.h.
SSL_CTX* XmlRpc::XmlRpcSource::_ssl_ctx |
Definition at line 74 of file XmlRpcSource.h.
Referenced by close().
SSL_METHOD* XmlRpc::XmlRpcSource::_ssl_meth |
Definition at line 76 of file XmlRpcSource.h.
SSL* XmlRpc::XmlRpcSource::_ssl_ssl |
Definition at line 75 of file XmlRpcSource.h.
Referenced by close(), XmlRpc::XmlRpcServerConnection::readHeader(), XmlRpc::XmlRpcServerConnection::readRequest(), and XmlRpc::XmlRpcServerConnection::writeResponse().