OverSim
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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
19
XmlRpcSource::~XmlRpcSource
()
20
{
21
}
22
23
24
void
25
XmlRpcSource::close
()
26
{
27
if
(
_fd
!= -1) {
28
XmlRpcUtil::log
(2,
"XmlRpcSource::close: closing socket %d."
,
_fd
);
29
XmlRpcSocket::close
(
_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) {
40
SSL_shutdown
(
_ssl_ssl
);
41
SSL_free
(
_ssl_ssl
);
42
SSL_CTX_free
(
_ssl_ctx
);
43
}
44
#endif
45
}
46
47
}
// namespace XmlRpc
src
tier3
xmlrpcinterface
xmlrpc++
XmlRpcSource.cc
Generated on Fri Dec 7 2012 13:37:53 for OverSim by
1.8.1.2