BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
TestBase64Server.cpp File Reference
#include <algorithm>
#include <fstream>
#include <iostream>
#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 45 of file TestBase64Server.cpp.

45 {
46 std::cerr << "Usage: TestBase64Server serverPort\n";
47 return -1;
48 }
49 int port = atoi( argv[1] );
50
51 // XmlRpc::setVerbosity(5);
52
53 // Create the server socket on the specified port
54 s.bindAndListen( port );
55
56 // Wait for requests indefinitely
57 s.work( -1.0 );
58
59 return 0;
60}
XmlRpcServer s

◆ main()

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

Definition at line 43 of file TestBase64Server.cpp.

43 {
44 if ( argc != 2 )
45 {
46 std::cerr << "Usage: TestBase64Server serverPort\n";
47 return -1;
48 }
49 int port = atoi( argv[1] );
50
51 // XmlRpc::setVerbosity(5);
52
53 // Create the server socket on the specified port
54 s.bindAndListen( port );
55
56 // Wait for requests indefinitely
57 s.work( -1.0 );
58
59 return 0;
60}

◆ TestBase64()

s::TestBase64 ( XmlRpcServer * s)

Definition at line 43 of file TestBase64Server.cpp.

43{

Variable Documentation

◆ s