2#ifndef _XMLRPCSOURCE_H_
3#define _XMLRPCSOURCE_H_
8# pragma warning(disable:4786)
25 int getfd()
const {
return _fd; }
27 void setfd(
int fd) { _fd = fd; }
An RPC source represents a file descriptor to monitor.
virtual void close()
Close the owned fd. If deleteOnClose was specified at construction, the object is deleted.
int getfd() const
Return the file descriptor being monitored.
virtual ~XmlRpcSource()
Destructor.
void setKeepOpen(bool b=true)
Specify whether the file descriptor should be kept open if it is no longer monitored.
XmlRpcSource(int fd=-1, bool deleteOnClose=false)
bool getKeepOpen() const
Return whether the file descriptor should be kept open if it is no longer monitored.
virtual unsigned handleEvent(unsigned eventType)=0
Return true to continue monitoring this source.
void setfd(int fd)
Specify the file descriptor to monitor.