15 int main(
int argc,
char* argv[])
18 std::cerr <<
"Usage: TestBase64Client serverHost serverPort outputFile\n";
21 int port = atoi(argv[2]);
27 if (c.
execute(
"TestBase64", noArgs, result))
30 std::ofstream outfile(argv[3], std::ios::binary | std::ios::trunc);
32 std::cerr <<
"Error opening " << argv[3] <<
" for output.\n";
35 int n = int(data.size());
36 for (
int i=0; i<n; ++i)
41 std::cout <<
"Error calling 'TestBase64'\n\n";
RPC method arguments and results are represented by Values.
int main(int argc, char *argv[])
A class to send XML RPC requests to a server and return the results.
bool execute(const char *method, XmlRpcValue const ¶ms, XmlRpcValue &result)
std::vector< char > BinaryData