#include <iostream>
#include <fstream>
#include <algorithm>
#include <stdlib.h>
#include "XmlRpc.h"
Go to the source code of this file.
Classes | |
class | TestBase64 |
Functions | |
int | main (int argc, char *argv[]) |
Variables | |
XmlRpcServer | s |
TestBase64 & | s |
int main | ( | int | argc, | |
char * | argv[] | |||
) |
Definition at line 50 of file TestBase64Server.cpp.
References XmlRpc::XmlRpcServer::bindAndListen(), s, and XmlRpc::XmlRpcServer::work().
00051 { 00052 if (argc != 2) { 00053 std::cerr << "Usage: TestBase64Server serverPort\n"; 00054 return -1; 00055 } 00056 int port = atoi(argv[1]); 00057 00058 //XmlRpc::setVerbosity(5); 00059 00060 // Create the server socket on the specified port 00061 s.bindAndListen(port); 00062 00063 // Wait for requests indefinitely 00064 s.work(-1.0); 00065 00066 return 0; 00067 }
Definition at line 19 of file TestBase64Server.cpp.