21 int main(
int argc,
char* argv[])
35 JParser<> zap(
"Example program to test receiving of objects from ControlHost server.");
45 catch(
const exception &error) {
46 FATAL(error.what() << endl);
56 JControlHostObjectIterator<data_type> in(hostname, timeout_us, !any);
58 for (
int i = 0; i != numberOfTimeouts; ) {
62 data_type* p = in.next();
65 NOTICE(p->getDAQHeader() << endl);
71 NOTICE(
"timeout " << setw(3) << i <<
'\r');
77 catch(
const JSocketException& error) {
78 ERROR(error.what() << endl);