Changeset 10798
- Timestamp:
- 05/24/11 17:38:02 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/fadctrl.cc
r10784 r10798 11 11 #include <boost/asio/deadline_timer.hpp> 12 12 13 #include "FACT.h"14 13 #include "Dim.h" 15 14 #include "Event.h" … … 75 74 return; 76 75 77 Out() << endl << kBold << "Channel " << i << " received:" << endl;78 76 Out() << fChannelHeader[i]; 79 77 if (fIsHexOutput) … … 95 93 { 96 94 if (err==ba::error::eof) 97 Warn("Connection closed by remote host (F TM).");95 Warn("Connection closed by remote host (FAD)."); 98 96 99 97 // 107: Transport endpoint is not connected (bs::error_code(107, bs::system_category)) … … 1159 1157 const int &idx = i->first; 1160 1158 1161 // FIXME: There is a difference between1162 // "connecting" and "disconnected"1163 1164 // Check conistency eb/fadctrl1165 1166 1159 // ----- Command socket ----- 1167 1160 if (c.IsConnecting()) … … 1200 1193 1201 1194 // ===== Return connection status ===== 1195 1196 // fadctrl: Always connecting if not disabled 1197 // event builder: 1202 1198 1203 1199 if (nconnected1==fBoards.size() && nconnected2==fBoards.size()) … … 1544 1540 ; 1545 1541 1546 po::options_description control("F TMcontrol options");1542 po::options_description control("FAD control options"); 1547 1543 control.add_options() 1548 1544 // ("addr,a", var<string>("localhost:5000"), "Network address of FTM") … … 1584 1580 { 1585 1581 Configuration conf(argv[0]); 1582 conf.SetPrintUsage(PrintUsage); 1586 1583 SetupConfiguration(conf); 1587 1584 … … 1594 1591 catch (po::multiple_occurrences &e) 1595 1592 { 1596 cout << "Error: " << e.what() << " of '" << e.get_option_name() << "' option." << endl; 1597 cout << endl; 1593 cerr << "Program options invalid due to: " << e.what() << " of '" << e.get_option_name() << "'." << endl; 1598 1594 return -1; 1599 1595 } 1600 1596 #endif 1601 catch (std::exception &e) 1602 { 1603 cout << "Error: " << e.what() << endl; 1604 cout << endl; 1605 1597 catch (exception& e) 1598 { 1599 cerr << "Program options invalid due to: " << e.what() << endl; 1606 1600 return -1; 1607 1601 } 1608 1602 1609 if (conf.Has Print())1603 if (conf.HasVersion() || conf.HasPrint()) 1610 1604 return -1; 1611 1612 if (conf.HasVersion())1613 {1614 FACT::PrintVersion(argv[0]);1615 return -1;1616 }1617 1605 1618 1606 if (conf.HasHelp())
Note:
See TracChangeset
for help on using the changeset viewer.