BOSS 7.1.3
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) {}
HelloName(XmlRpcServer *s)
XmlRpcServer s
Abstract class representing a single RPC method.
A class to handle XML RPC requests.

◆ 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
75 s.enableIntrospection(true);
76
77 // Wait for requests indefinitely
78 s.work(-1.0);
79
80 return 0;
81}
void setVerbosity(int level)
Sets log message verbosity. This is short for XmlRpcLogHandler::setVerbosity(level)

◆ 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 !v, XmlRpc::XmlRpcServer::acceptConnection(), zav::add(), xmlBase::Dom::addAttribute(), xmlBase::Dom::addAttribute(), xmlBase::Dom::addAttribute(), BesGMenuBar::AddPopup(), BesGMenuBar::AddPopup(), rdbModel::Supersede::addSet(), rhopi::amps1(), rhopifull::amps1(), VVS::amps1(), EvtCyclic3::append(), EvtCyclic3::append(), FTTrack::append_stereo(), KalFitTrack::appendHelixSegs(), T3DLine::approach_line(), TRunge::approach_line(), XmlRpc::XmlRpcValue::arrayToXml(), ers::Assertion::Assertion(), ers::Assertion::Assertion(), eformat::write::ROSFragment::bc_id(), BesGMenuBar::BesGMenuBar(), BesGMenuTitle::BesGMenuTitle(), TBuilder::buildStereo(), TBuilder::buildStereoNew(), EvtConExc::calAF(), EvtbTosllAmp::CalcAmp(), SingleParticleGun::callGenerator(), ers::InvalidReferenceIssue::check_reference(), ClassImp(), Code::Code(), bes::String::compare_nocase(), bes::String::compare_nocase(), basic_binostream< char >::computesize(), basic_binstreambuf< char >::computesize(), DifNumber::cosAndSin(), Minor2::create(), Minor3::create(), Minor4::create(), ers::StreamFactory::create_stream(), ers::StreamFactory::create_stream(), XmlRpc::XmlRpcServer::createConnection(), zav::d(), FTTrack::d_z(), EvtDecayMode::dal(), RecMdcKalTrackCnv::DataObjectToTObject(), KalFitMaterial::dE(), RkFitMaterial::dE(), ers::StreamFactory::debug(), ers::StreamFactory::debug(), 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(), DifNumber::DifNumber(), DifNumber::DifNumber(), DifNumber::DifNumber(), DifNumber::DifNumber(), DifNumber::DifNumber(), DifNumber::DifNumber(), DifNumber::DifNumber(), BesTofDigitizerEcV4::Digitize(), ers::StreamFactory::dispatch(), HelixTraj::distTo1stError(), Trajectory::distTo1stError(), HelixTraj::distTo2ndError(), Trajectory::distTo2ndError(), TMDC::driftDistance(), EvtConExc::Egam2Mhds(), ers::EntityNotFoundIssue::EntityNotFoundIssue(), ers::EntityNotFoundIssue::EntityNotFoundIssue(), TFormFactor::Eval(), TMuKFun::Eval(), Minor2::evalB(), Minor2::evalB(), Minor3::evalC(), Minor3::evalC(), Minor4::evalD(), Minor4::evalD(), Minor5::evalE(), Minor5::evalE(), Minor5::evalE(), Minor5::evalE(), Minor5::evalE(), Minor5::evalE(), TVacuumPol::Evals(), EvtItgSimpsonIntegrator::evaluateIt(), eformat::write::FullEventFragment::event_filter_info(), EvtDecayMode::EvtDecayMode(), EvtDecayMode::EvtDecayMode(), execute(), rhopi::F00(), rhopi::F10(), FakeOne::FakeOne(), CalibCLIDNode::fillStream(), EmcDigi::fillStream(), Event::Relation< T1, T2 >::fillStream(), Event::Relation< Event::McParticle, Event::MdcMcHit >::fillStream(), RawData::fillStream(), bes::String::find_nocase(), bes::String::find_nocase(), TLine0::fit2(), TMLine::fit2(), TLine0::fit2p(), TMLine::fit2p(), TLine0::fit2s(), TMLine::fit2s(), TLine0::fit2sp(), TMLine::fit2sp(), EvtConExc::gamHXSection(), 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(), Trajectory::getInfo(), getLine(), XmlRpc::XmlRpcUtil::getNextTag(), EvtConExc::getObsXsection(), TrkBmSpotOnTrk::GetRms(), eformat::write::FullEventFragment::global_id(), Goofy::Goofy(), BesRndmGenSvc::handle(), Hello::Hello(), HelloName::HelloName(), 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(), IfdStrKey::IfdStrKey(), EvtBtoXsll::init(), EvtConExc::init(), EvtDecay::initialize(), Phokhara::initialize(), QCMCFilter::initialize(), ers::InvalidReferenceIssue::InvalidReferenceIssue(), ers::InvalidReferenceIssue::InvalidReferenceIssue(), ers::Issue::is_error(), EvtMultiChannelParser::isKeyword(), ers::Issue::Issue(), ers::Issue::Issue(), ers::Issue::Issue(), ers::IssueFactoryIssue::IssueFactoryIssue(), ers::IssueFactoryIssue::IssueFactoryIssue(), ixtime_(), ers::StreamFactory::key_for_severity(), Links(), Links(), FTTrack::linkStereoSegments(), ListMethods::ListMethods(), ers::LogIssue::LogIssue(), ers::LogIssue::LogIssue(), 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(), main(), MajorLinks(), TTrackManager::makeTds(), TTrackManager::maskCurlHits(), MethodHelp::MethodHelp(), EvtConExc::mk_VXS(), FTSuperLayer::mkSegmentList(), Kpipi0pi0::MTotal(), EvtConExc::narrowRXS(), XmlRpc::XmlRpcSocket::nbRead(), XmlRpc::XmlRpcSocket::nbWrite(), TMDCWire::neighbor(), NLinkBranches(), NMajorLinks(), ers::NotImplemented::NotImplemented(), NUniqueLinks(), ers::Issue::operator std::string(), ers::operator<<(), ers::operator<<(), ers::operator<<(), EvtComplex::operator<<, EvtDiracSpinor::operator<<, EvtGammaMatrix::operator<<, EvtId::operator<<, EvtRaritaSchwinger::operator<<, EvtSecondary::operator<<, EvtSpinDensity::operator<<, EvtStdHep::operator<<, EvtTensor4C::operator<<, EvtVector3R::operator<<, EvtVector4C::operator<<, EvtVector4R::operator<<, Ext_errmx::operator<<, Ext_xp_err::operator<<, operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), TSegmentCurl::operator=(), XmlRpc::XmlRpcValue::operator[](), ers::Core::parse_boolean(), ers::Core::parse_prefix_string(), ers::Core::parse_responsibility(), ers::Core::parse_responsibility(), ers::Core::parse_severity(), ers::Core::parse_severity(), ers::ParseIssue::ParseIssue(), ers::ParseIssue::ParseIssue(), ers::ParseIssue::ParseIssue(), ers::Precondition::Precondition(), ers::Precondition::Precondition(), BesRndmGenSvc::print(), EvtDalitzPlot::q(), EvtDecayMode::q(), EvtConExc::Rad1(), EvtConExc::Rad1difXs(), EvtConExc::Rad2(), EvtConExc::Rad2difXs(), EvtConExc::Rad2difXs(), EvtConExc::Rad2difXs(), Rad2difXs(), Rad2difXs2(), Rad2difXs_er(), Rad2difXs_er2(), ers::RangeIssue::RangeIssue(), ers::RangeIssue::RangeIssue(), 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(), rotateEuler(), eformat::write::FullEventFragment::run_no(), eformat::write::ROSFragment::run_no(), FTTrack::s_zFit(), RandomNrCenter::SaveEngineStatus(), TBuilder::searchLine(), SeparateCrowded(), RawData::serialize(), RawData::serialize(), ers::StreamFactory::set(), 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(), Sum::Sum(), testString(), eformat::write::FullEventFragment::time(), ers::Core::to_string(), Event::RelKey< T1, T2, T3 >::toStream(), Event::RelKey< RecMdcHit, RecMdcHit, RecMdcTrack >::toStream(), TrackInformation(), TrackKinematics(), TrackStatus(), EvtConExc::trapezoid(), EvtConExc::trapezoid(), TSegmentCurl::TSegmentCurl(), TSegmentCurl::TSegmentCurl(), UniqueLinks(), FTTrack::updateSZ(), uxtime_(), Bes2DView::WCtoNDC(), Bes2DView::WCtoNDC(), BesView::WCtoNDC(), BesView::WCtoNDC(), XmlRpc::XmlRpcValue::write(), EvtXsection::Xsection_c(), zav::z(), BesTView::ZoomView(), ers::StreamFactory::~StreamFactory(), and rdbModel::Supersede::~Supersede().