BOSS 7.0.8
BESIII Offline Software System
Loading...
Searching...
No Matches
TestBase64Server.cpp File Reference
#include <iostream>
#include <fstream>
#include <algorithm>
#include <stdlib.h>
#include "XmlRpc.h"

Go to the source code of this file.

Classes

class  TestBase64
 

Functions

 TestBase64 (XmlRpcServer *s)
 
void execute (XmlRpcValue &params, XmlRpcValue &result)
 
int main (int argc, char *argv[])
 

Variables

XmlRpcServer s
 

Function Documentation

◆ execute()

void s::execute ( XmlRpcValue params,
XmlRpcValue result 
)

Definition at line 50 of file TestBase64Server.cpp.

51{
52 if (argc != 2) {
53 std::cerr << "Usage: TestBase64Server serverPort\n";
54 return -1;
55 }
56 int port = atoi(argv[1]);
57
58 //XmlRpc::setVerbosity(5);
59
60 // Create the server socket on the specified port
61 s.bindAndListen(port);
62
63 // Wait for requests indefinitely
64 s.work(-1.0);
65
66 return 0;
67}
68
XmlRpcServer s
bool bindAndListen(int port, int backlog=5)
void work(double msTime)
Process client requests for the specified time.

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 50 of file TestBase64Server.cpp.

51{
52 if (argc != 2) {
53 std::cerr << "Usage: TestBase64Server serverPort\n";
54 return -1;
55 }
56 int port = atoi(argv[1]);
57
58 //XmlRpc::setVerbosity(5);
59
60 // Create the server socket on the specified port
61 s.bindAndListen(port);
62
63 // Wait for requests indefinitely
64 s.work(-1.0);
65
66 return 0;
67}

◆ TestBase64()

s::TestBase64 ( XmlRpcServer s)

Definition at line 48 of file TestBase64Server.cpp.

Variable Documentation

◆ s

Definition at line 19 of file TestBase64Server.cpp.

Referenced by execute().