Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
d
f
g
i
m
n
p
r
s
t
v
x
Functions
Variables
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
w
x
~
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
w
x
~
Variables
_
a
b
c
d
e
f
h
i
l
m
p
r
s
Typedefs
Enumerations
Enumerator
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
w
x
Functions
_
a
b
c
e
h
i
l
m
n
o
p
s
t
Variables
a
b
c
d
e
f
g
h
l
n
p
r
s
x
Enumerations
Enumerator
Macros
src
XmlRpcSource.cpp
Go to the documentation of this file.
1
2
#include "
xmlrpcpp/XmlRpcSource.h
"
3
#include "
xmlrpcpp/XmlRpcSocket.h
"
4
#include "
xmlrpcpp/XmlRpcUtil.h
"
5
6
namespace
XmlRpc
{
7
8
9
XmlRpcSource::XmlRpcSource
(
int
fd
/*= -1*/
,
bool
deleteOnClose
/*= false*/
)
10
: _fd(fd), _deleteOnClose(deleteOnClose), _keepOpen(false)
11
{
12
}
13
14
XmlRpcSource::~XmlRpcSource
()
15
{
16
}
17
18
19
void
20
XmlRpcSource::close
()
21
{
22
if
(
_fd
!= -1) {
23
XmlRpcUtil::log
(2,
"XmlRpcSource::close: closing socket %d."
,
_fd
);
24
XmlRpcSocket::close
(
_fd
);
25
XmlRpcUtil::log
(2,
"XmlRpcSource::close: done closing socket %d."
,
_fd
);
26
_fd
= -1;
27
}
28
if
(
_deleteOnClose
) {
29
XmlRpcUtil::log
(2,
"XmlRpcSource::close: deleting this"
);
30
_deleteOnClose
=
false
;
31
delete
this
;
32
}
33
}
34
35
}
// namespace XmlRpc
XmlRpc::XmlRpcUtil::log
static void log(int level, const char *fmt,...)
Dump messages somewhere.
Definition:
XmlRpcUtil.cpp:81
XmlRpc::XmlRpcSocket::close
static void close(int socket)
Closes a socket.
Definition:
XmlRpcSocket.cpp:109
XmlRpc
Definition:
XmlRpcClient.h:20
XmlRpc::XmlRpcSource::close
virtual void close()
Close the owned fd. If deleteOnClose was specified at construction, the object is deleted.
Definition:
XmlRpcSource.cpp:20
XmlRpcSource.h
XmlRpc::XmlRpcSource::_fd
int _fd
Definition:
XmlRpcSource.h:45
XmlRpc::XmlRpcSource::_deleteOnClose
bool _deleteOnClose
Definition:
XmlRpcSource.h:50
XmlRpc::XmlRpcSource::~XmlRpcSource
virtual ~XmlRpcSource()
Destructor.
Definition:
XmlRpcSource.cpp:14
XmlRpcSocket.h
XmlRpc::XmlRpcSource::XmlRpcSource
XmlRpcSource(int fd=-1, bool deleteOnClose=false)
Definition:
XmlRpcSource.cpp:9
XmlRpcUtil.h
xmlrpcpp
Author(s): Chris Morley, Konstantin Pilipchuk, Morgan Quigley, Austin Hendrix, Dirk Thomas
, Jacob Perron
autogenerated on Sat Sep 14 2024 02:59:32