Public Member Functions | Protected Attributes

XMLRPC::XMLRPCClient Struct Reference

#include <httpclnt.h>

Collaboration diagram for XMLRPC::XMLRPCClient:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 XMLRPCClient (LPCTSTR url, LPCTSTR agent="HTTP Post Client")
void enable_extensions (bool flag=true)
string request_post (const string &in)
XMLRPCResult call (XMLRPCCall &call)

Protected Attributes

URL _parsed_url
bool _extensions
AddressList _addr
HTTPConnection _connection

Detailed Description

Definition at line 191 of file httpclnt.h.


Constructor & Destructor Documentation

XMLRPC::XMLRPCClient::XMLRPCClient ( LPCTSTR  url,
LPCTSTR  agent = "HTTP Post Client" 
)

Definition at line 41 of file httpclnt.cpp.

References _connection, _parsed_url, BUFFER_LEN, and request_post().

                 {


XMLRPCClient::XMLRPCClient(LPCTSTR url, LPCTSTR agent)
 :  _extensions(false),
    _parsed_url(url),
#ifdef USE_WININET
    _inet_lib(agent),
    _connection(_inet_lib._hinet, _parsed_url)
#else
    _connection(agent, _parsed_url)
#endif

Here is the call graph for this function:


Member Function Documentation

XMLRPCResult XMLRPC::XMLRPCClient::call ( XMLRPCCall call )

Definition at line 82 of file xmlrpc_clnt.cpp.

References XMLRPC::XMLRPCWriter::flush(), and request_post().

{
    string xml_str = call.flush();

#ifdef _DEBUG
    cout << xml_str << endl;
#endif

    string out = request_post(xml_str);

#ifdef _DEBUG
    cout << out << endl;
#endif

    return XMLRPCResult(out);
}

Here is the call graph for this function:

void XMLRPC::XMLRPCClient::enable_extensions ( bool  flag = true ) [inline]

Definition at line 195 of file httpclnt.h.

    {
        _extensions = flag;
    }
string XMLRPC::XMLRPCClient::request_post ( const string &  in )

Definition at line 109 of file httpclnt.cpp.

Referenced by call(), and XMLRPCClient().

Here is the caller graph for this function:


Member Data Documentation

Definition at line 215 of file httpclnt.h.

Definition at line 216 of file httpclnt.h.

Referenced by XMLRPCClient().

Definition at line 206 of file httpclnt.h.

Definition at line 205 of file httpclnt.h.

Referenced by XMLRPCClient().


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