Public Member Functions | Private Attributes | List of all members
XmlRpc::XmlRpcSource Class Referenceabstract

An RPC source represents a file descriptor to monitor. More...

#include <XmlRpcSource.h>

Inheritance diagram for XmlRpc::XmlRpcSource:
Inheritance graph
[legend]

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
 

Detailed Description

An RPC source represents a file descriptor to monitor.

Definition at line 16 of file XmlRpcSource.h.

Constructor & Destructor Documentation

◆ XmlRpcSource()

XmlRpc::XmlRpcSource::XmlRpcSource ( int  fd = -1,
bool  deleteOnClose = false 
)

Constructor

Parameters
fdThe socket file descriptor to monitor.
deleteOnCloseIf true, the object deletes itself when close is called.

Definition at line 9 of file XmlRpcSource.cpp.

◆ ~XmlRpcSource()

XmlRpc::XmlRpcSource::~XmlRpcSource ( )
virtual

Destructor.

Definition at line 14 of file XmlRpcSource.cpp.

Member Function Documentation

◆ close()

void XmlRpc::XmlRpcSource::close ( )
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.

◆ getfd()

int XmlRpc::XmlRpcSource::getfd ( ) const
inline

Return the file descriptor being monitored.

Definition at line 27 of file XmlRpcSource.h.

◆ getKeepOpen()

bool XmlRpc::XmlRpcSource::getKeepOpen ( ) const
inline

Return whether the file descriptor should be kept open if it is no longer monitored.

Definition at line 32 of file XmlRpcSource.h.

◆ handleEvent()

virtual unsigned XmlRpc::XmlRpcSource::handleEvent ( unsigned  eventType)
pure virtual

Return true to continue monitoring this source.

Implemented in MockSource, XmlRpc::XmlRpcServer, XmlRpc::XmlRpcClient, and XmlRpc::XmlRpcServerConnection.

◆ setfd()

void XmlRpc::XmlRpcSource::setfd ( int  fd)
inline

Specify the file descriptor to monitor.

Definition at line 29 of file XmlRpcSource.h.

◆ setKeepOpen()

void XmlRpc::XmlRpcSource::setKeepOpen ( bool  b = true)
inline

Specify whether the file descriptor should be kept open if it is no longer monitored.

Definition at line 34 of file XmlRpcSource.h.

Member Data Documentation

◆ _deleteOnClose

bool XmlRpc::XmlRpcSource::_deleteOnClose
private

Definition at line 50 of file XmlRpcSource.h.

◆ _fd

int XmlRpc::XmlRpcSource::_fd
private

Definition at line 45 of file XmlRpcSource.h.

◆ _keepOpen

bool XmlRpc::XmlRpcSource::_keepOpen
private

Definition at line 53 of file XmlRpcSource.h.


The documentation for this class was generated from the following files:


xmlrpcpp
Author(s): Chris Morley, Konstantin Pilipchuk, Morgan Quigley, Austin Hendrix, Dirk Thomas , Jacob Perron
autogenerated on Sat Sep 14 2024 02:59:32