23 int main(
int argc, 
const char *argv[])
 
   38     JParser<> zap(
"Auxiliary program to send messages to ControlHost server.");
 
   44     zap[
'n'] = 
make_field(numberOfEvents)  = numeric_limits<int>::max();
 
   50   catch(
const exception &error) {
 
   51     FATAL(error.what() << endl);
 
   57     FATAL(
"No tags specified.");
 
   60   JControlHost::Throw(
true); 
 
   64     JControlHost out(hostname);
 
   66     JTimekeeper timer((
long long int) (1.0e6 / rate_Hz));
 
   70     for (
int i = 0; i != size; ++i) {
 
   71       buffer[i] = 
'a' + (i%26);
 
   81     for (
int i = 1; i <= numberOfEvents; ++i) {
 
   83       if (Tag != 
DISPTAG_UNDEFINED) { out.PutFullData(Tag, buffer.data(), buffer.size()); ++all; }
 
   84       if (tag != 
DISPTAG_UNDEFINED) { out.PutFullData(tag, buffer.data(), buffer.size()); ++few; }
 
   90         DEBUG(
"Time    [us] " << setw(10) << t1 - t0 << endl);
 
   91         DEBUG(
"<delay> [us] " << setw(10) << timer.getDelay() / i << endl);
 
   92         DEBUG(
"Count all    " << setw(10) << all << endl);
 
   93         DEBUG(
"Count few    " << setw(10) << few << endl);
 
   99   catch(
const JControlHostException& error) {
 
  100     ERROR(error << endl);