An RPC source represents a file descriptor to monitor. More...
#include <XmlRpcSource.h>

Public Member Functions | |
| virtual void | close () |
| Close the owned fd. If deleteOnClose was specified at construction, the object is deleted. More... | |
| int | getfd () const |
| Return the file descriptor being monitored. More... | |
| bool | getKeepOpen () const |
| Return whether the file descriptor should be kept open if it is no longer monitored. More... | |
| virtual unsigned | handleEvent (unsigned eventType)=0 |
| Return true to continue monitoring this source. More... | |
| void | setfd (int fd) |
| Specify the file descriptor to monitor. More... | |
| void | setKeepOpen (bool b=true) |
| Specify whether the file descriptor should be kept open if it is no longer monitored. More... | |
| XmlRpcSource (int fd=-1, bool deleteOnClose=false) | |
| virtual | ~XmlRpcSource () |
| Destructor. More... | |
Private Attributes | |
| bool | _deleteOnClose |
| int | _fd |
| bool | _keepOpen |
An RPC source represents a file descriptor to monitor.
Definition at line 16 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 9 of file XmlRpcSource.cpp.
|
virtual |
Destructor.
Definition at line 14 of file XmlRpcSource.cpp.
|
virtual |
Close the owned fd. If deleteOnClose was specified at construction, the object is deleted.
Reimplemented in MockSource, and XmlRpc::XmlRpcClient.
Definition at line 20 of file XmlRpcSource.cpp.
|
inline |
Return the file descriptor being monitored.
Definition at line 27 of file XmlRpcSource.h.
|
inline |
Return whether the file descriptor should be kept open if it is no longer monitored.
Definition at line 32 of file XmlRpcSource.h.
|
pure virtual |
Return true to continue monitoring this source.
Implemented in MockSource, XmlRpc::XmlRpcServer, XmlRpc::XmlRpcClient, and XmlRpc::XmlRpcServerConnection.
|
inline |
Specify the file descriptor to monitor.
Definition at line 29 of file XmlRpcSource.h.
|
inline |
Specify whether the file descriptor should be kept open if it is no longer monitored.
Definition at line 34 of file XmlRpcSource.h.
|
private |
Definition at line 50 of file XmlRpcSource.h.
|
private |
Definition at line 45 of file XmlRpcSource.h.
|
private |
Definition at line 53 of file XmlRpcSource.h.