OverSim
XmlRpcSource.cc
Go to the documentation of this file.
1 
7 #include "XmlRpcSource.h"
8 #include "XmlRpcSocket.h"
9 #include "XmlRpcUtil.h"
10 
11 namespace XmlRpc {
12 
13 
14  XmlRpcSource::XmlRpcSource(int fd /*= -1*/, bool deleteOnClose /*= false*/)
15  : _fd(fd), _deleteOnClose(deleteOnClose), _keepOpen(false)
16  {
17  }
18 
20  {
21  }
22 
23 
24  void
26  {
27  if (_fd != -1) {
28  XmlRpcUtil::log(2,"XmlRpcSource::close: closing socket %d.", _fd);
30  XmlRpcUtil::log(2,"XmlRpcSource::close: done closing socket %d.", _fd);
31  _fd = -1;
32  }
33  if (_deleteOnClose) {
34  XmlRpcUtil::log(2,"XmlRpcSource::close: deleting this");
35  _deleteOnClose = false;
36  delete this;
37  }
38 #ifdef USE_SSL
39  if (_ssl_ssl != (SSL *) NULL) {
43  }
44 #endif
45  }
46 
47 } // namespace XmlRpc