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

Go to the source code of this file.

Classes

class  Hello
 
class  HelloName
 
class  Sum
 

Functions

 Hello (XmlRpcServer *s)
 
void execute (XmlRpcValue &params, XmlRpcValue &result)
 
std::string help ()
 
 HelloName (XmlRpcServer *s)
 
 Sum (XmlRpcServer *s)
 
int main (int argc, char *argv[])
 

Variables

XmlRpcServer s
 

Function Documentation

◆ execute()

void execute ( XmlRpcValue params,
XmlRpcValue result 
)

Definition at line 30 of file HelloServer.cpp.

30 : public XmlRpcServerMethod
31{
32public:
33 HelloName(XmlRpcServer* s) : XmlRpcServerMethod("HelloName", s) {}
XmlRpcServer s
Definition: HelloServer.cpp:11
Abstract class representing a single RPC method.
A class to handle XML RPC requests.
Definition: XmlRpcServer.h:33

◆ Hello()

s::Hello ( XmlRpcServer s)

Definition at line 28 of file HelloServer.cpp.

◆ HelloName()

s::HelloName ( XmlRpcServer s)

Definition at line 43 of file HelloServer.cpp.

◆ help()

std::string s::help ( )

Definition at line 35 of file HelloServer.cpp.

◆ main()

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

Definition at line 61 of file HelloServer.cpp.

62{
63 if (argc != 2) {
64 std::cerr << "Usage: HelloServer serverPort\n";
65 return -1;
66 }
67 int port = atoi(argv[1]);
68
70
71 // Create the server socket on the specified port
72 s.bindAndListen(port);
73
74 // Enable introspection
76
77 // Wait for requests indefinitely
78 s.work(-1.0);
79
80 return 0;
81}
bool bindAndListen(int port, int backlog=5)
void enableIntrospection(bool enabled=true)
Specify whether introspection is enabled or not. Default is not enabled.
void work(double msTime)
Process client requests for the specified time.
void setVerbosity(int level)
Sets log message verbosity. This is short for XmlRpcLogHandler::setVerbosity(level)
Definition: XmlRpcUtil.cpp:67

◆ Sum()

s::Sum ( XmlRpcServer s)

Definition at line 60 of file HelloServer.cpp.

Variable Documentation

◆ s

SimpleStructReturnTest XmlRpcServerMethod simpleStructReturnTest & s

Definition at line 11 of file HelloServer.cpp.

Referenced by XmlRpc::XmlRpcServer::acceptConnection(), zav::add(), xmlBase::Dom::addAttribute(), BesGMenuBar::AddPopup(), rdbModel::Supersede::addSet(), rhopi::amps1(), VVS::amps1(), rhopifull::amps1(), EvtCyclic3::append(), FTTrack::append_stereo(), T3DLine::approach_line(), TRunge::approach_line(), XmlRpc::XmlRpcValue::arrayToXml(), eformat::write::ROSFragment::bc_id(), TBuilder::buildStereo(), TBuilder::buildStereoNew(), EvtConExc::calAF(), SingleParticleGun::callGenerator(), ers::InvalidReferenceIssue::check_reference(), Code::Code(), bes::String::compare_nocase(), basic_binstreambuf< _Ch, _Tr >::computesize(), basic_binostream< _Ch, _Tr >::computesize(), Minor2::create(), Minor3::create(), Minor4::create(), ers::StreamFactory::create_stream(), XmlRpc::XmlRpcServer::createConnection(), zav::d(), FTTrack::d_z(), EvtDecayMode::dal(), RecMdcKalTrackCnv::DataObjectToTObject(), KalFitMaterial::dE(), RkFitMaterial::dE(), ers::StreamFactory::debug(), EvtBtoXsll::decay(), EvtSVSCPiso::decay(), EvtVPHOtoVISR::decay(), EvtVPHOtoVISRHi::decay(), EvtVVSPwave::decay(), BesTView::DefineViewDirection(), TRunge::dEpath(), EvtbTosllAmp::dGdsdupProb(), EvtBtoXsllUtil::dGdsdupProb(), EvtbTosllAmp::dGdsProb(), EvtBtoXsllUtil::dGdsProb(), BesTofDigitizerEcV4::Digitize(), ers::StreamFactory::dispatch(), TMDC::driftDistance(), EvtConExc::Egam2Mhds(), TFormFactor::Eval(), TMuKFun::Eval(), Minor5::evalE(), TVacuumPol::Evals(), EvtItgSimpsonIntegrator::evaluateIt(), eformat::write::FullEventFragment::event_filter_info(), EvtDecayMode::EvtDecayMode(), rhopi::F00(), rhopi::F10(), CalibCLIDNode::fillStream(), EmcDigi::fillStream(), RawData::fillStream(), Event::Relation< T1, T2 >::fillStream(), bes::String::find_nocase(), TLine0::fit2(), TMLine::fit2(), TLine0::fit2p(), TMLine::fit2p(), TLine0::fit2s(), TMLine::fit2s(), TLine0::fit2sp(), TMLine::fit2sp(), EvtConExc::gamHXSection(), ExtMucKal::GapHit(), ers::StreamFactory::get_default_stream(), ers::StreamFactory::get_stream(), MucRecHit::GetCenterSigma(), G4SvcRunManagerMessenger::GetCurrentValue(), GoofyMessenger::GetCurrentValue(), ProjectMessenger::GetCurrentValue(), RandomCenterMessenger::GetCurrentValue(), BesClient::GetEvent(), MucRec2DRoad::GetHitDistance(), getLine(), XmlRpc::XmlRpcUtil::getNextTag(), EvtConExc::getObsXsection(), TrkBmSpotOnTrk::GetRms(), eformat::write::FullEventFragment::global_id(), BesRndmGenSvc::handle(), eformat::helper::SourceIdentifier::human_detector(), Minor5::I2D2stu(), Minor5::I2D2stui(), Minor5::I2D2stuij(), Minor5::I2D3stu(), Minor5::I2D4stu(), Minor5::I2D5stu(), Minor5::I2D6stu(), Minor5::I2Dstu(), Minor5::I2Dstui(), Minor5::I2stu(), Minor5::I3D2st(), Minor5::I3D2sti(), Minor5::I3D2stij(), Minor5::I3D3st(), Minor5::I3D3sti(), Minor5::I3D3stij(), Minor5::I3D3stijk(), Minor5::I3D4st(), Minor5::I3D5st(), Minor5::I3D6st(), Minor5::I3D7st(), Minor5::I3Dst(), Minor5::I3Dsti(), Minor5::I3st(), Minor5::I4D2s(), Minor5::I4D2si(), Minor5::I4D2sij(), Minor5::I4D3s(), Minor5::I4D3si(), Minor5::I4D3sij(), Minor5::I4D3sijk(), Minor5::I4D4s(), Minor5::I4D4si(), Minor5::I4D4sij(), Minor5::I4D4sijk(), Minor5::I4D4sijkl(), Minor5::I4Ds(), Minor5::I4Dsi(), Minor5::I4s(), IfdStrKey::IfdStrKey(), EvtBtoXsll::init(), EvtConExc::init(), EvtDecay::initialize(), Phokhara::initialize(), QCMCFilter::initialize(), ers::InvalidReferenceIssue::InvalidReferenceIssue(), ers::Issue::is_error(), EvtMultiChannelParser::isKeyword(), ers::Issue::Issue(), ixtime_(), ers::StreamFactory::key_for_severity(), Links(), FTTrack::linkStereoSegments(), eformat::write::FullEventFragment::lvl1_id(), eformat::write::ROSFragment::lvl1_id(), eformat::write::FullEventFragment::lvl1_trigger_type(), eformat::write::FullEventFragment::lvl2_trigger_info(), EvtDecayMode::m(), main(), MajorLinks(), TTrackManager::makeTds(), TTrackManager::maskCurlHits(), EvtConExc::mk_VXS(), FTSuperLayer::mkSegmentList(), Kpipi0pi0::MTotal(), EvtConExc::narrowRXS(), XmlRpc::XmlRpcSocket::nbRead(), XmlRpc::XmlRpcSocket::nbWrite(), TMDCWire::neighbor(), NLinkBranches(), NMajorLinks(), NUniqueLinks(), ers::Issue::operator std::string(), operator<<(), ers::operator<<(), TSegmentCurl::operator=(), XmlRpc::XmlRpcValue::operator[](), ers::Core::parse_boolean(), ers::Core::parse_prefix_string(), ers::Core::parse_responsibility(), ers::Core::parse_severity(), BesRndmGenSvc::print(), EvtDecayMode::q(), EvtDalitzPlot::q(), EvtConExc::Rad1(), EvtConExc::Rad1difXs(), EvtConExc::Rad2(), Rad2difXs(), EvtConExc::Rad2difXs(), Rad2difXs2(), Rad2difXs_er(), Rad2difXs_er2(), ReadCurPara(), TrkHitOnTrk::resid(), RandomNrCenter::RestoreEngineStatus(), eformat::write::ROBFragment::rod_bc_id(), eformat::write::ROBFragment::rod_detev_type(), eformat::write::ROBFragment::rod_lvl1_id(), eformat::write::ROBFragment::rod_lvl1_type(), eformat::write::ROBFragment::rod_run_no(), RootAddress::RootAddress(), EvtConExc::Ros_xs(), eformat::write::FullEventFragment::run_no(), eformat::write::ROSFragment::run_no(), FTTrack::s_zFit(), RandomNrCenter::SaveEngineStatus(), Lpar::sd(), TBuilder::searchLine(), SeparateCrowded(), RawData::serialize(), ers::StreamFactory::set(), ers::StreamFactory::set_stream(), bitmanip::set_word(), BesMagneticField::SetMinStep(), GoofyMessenger::SetNewValue(), ProjectMessenger::SetNewValue(), RandomCenterMessenger::SetNewValue(), Consistency::setSign(), Consistency::setStatus(), ers::Issue::severity(), Goofy::Shell(), FTTrack::SigmaS(), EvtConExc::SoftPhoton_xs(), solveQuad(), TTrackManager::sortBanksByPt(), eformat::write::FullEventFragment::source_id(), eformat::write::ROBFragment::source_id(), eformat::write::ROSFragment::source_id(), eformat::write::SubDetectorFragment::source_id(), EvtConExc::split(), ers::StreamFactory::StreamFactory(), BesPolygon2D::Stretch(), testString(), eformat::write::FullEventFragment::time(), ers::Core::to_string(), Event::RelKey< T1, T2, T3 >::toStream(), TrackInformation(), TrackKinematics(), TrackStatus(), EvtConExc::trapezoid(), TSegmentCurl::TSegmentCurl(), UniqueLinks(), FTTrack::updateSZ(), uxtime_(), Bes2DView::WCtoNDC(), BesView::WCtoNDC(), XmlRpc::XmlRpcValue::write(), EvtXsection::Xsection_c(), XYZ2Polar(), zav::z(), BesTView::ZoomView(), ers::StreamFactory::~StreamFactory(), and rdbModel::Supersede::~Supersede().