#include #include #include #include "Jeep/JParser.hh" #include "JNet/JControlHost.hh" /** * \file * * Auxiliary program to send show status message to JLigier.cc - ControlHost server.\n * The status will then be printed by the server. * * The option -H \[:port] correponds to the hostname and the port of the server, respectively. * \author mdejong */ int main(int argc, const char *argv[]) { using namespace std; using namespace JPP; string hostname; int debug; try { JParser<> zap("Auxiliary program to send show status messages to JLigier - ControlHost server."); zap['H'] = make_field(hostname) = "localhost"; zap['d'] = make_field(debug) = 3; zap(argc, argv); } catch(const exception &error) { FATAL(error.what() << endl); } JControlHost::Throw(true); try { JControlHost out(hostname); out.PutFullString(DISPTAG_ShowStat, ""); } catch(const JControlHostException& error) { ERROR(error << endl); } }