first commit

This commit is contained in:
2025-11-25 10:55:38 +07:00
commit 88ebdb465c
57 changed files with 9213 additions and 0 deletions

45
test/TestBase64Client.cpp Normal file
View File

@@ -0,0 +1,45 @@
// TestBase64Client.cpp : A simple xmlrpc client that returns a png file
// encoded as base64 data to the client.
//
// Usage: TestBase64Client serverHost serverPort outputfile
// Requests a png file from the specified server and saves it in outputfile.
// Link against xmlrpc lib and whatever socket libs your system needs (ws2_32.lib on windows)
#include "XmlRpc.h"
#include <iostream>
#include <fstream>
#include <stdlib.h>
using namespace XmlRpc;
int main(int argc, char* argv[])
{
if (argc != 4) {
std::cerr << "Usage: TestBase64Client serverHost serverPort outputFile\n";
return -1;
}
int port = atoi(argv[2]);
//XmlRpc::setVerbosity(5);