- Timestamp:
- 03/23/12 22:08:54 (13 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/Connection.cc
r13200 r13209 89 89 void Connection::CloseImp(bool restart) 90 90 { 91 if (IsConnected() )91 if (IsConnected() && fVerbose) 92 92 { 93 93 ostringstream str; … … 303 303 setsockopt(native(), SOL_TCP, TCP_KEEPINTVL, &optval, sizeof(optval)); 304 304 305 Info("Connection established to "+host+"..."); 305 if (fVerbose) 306 Info("Connection established to "+host+"..."); 306 307 307 308 fConnectionStatus = kConnected; … … 416 417 { 417 418 fMsgConnect = msg.str(); 418 ec ? Error(msg) : Info(msg); 419 if (ec) 420 Error(msg); 421 if (!ec && fVerbose) 422 Info(msg); 419 423 } 420 424 … … 474 478 475 479 Connection::Connection(ba::io_service& ioservice, ostream &out) : 476 MessageImp(out), tcp::socket(ioservice), fLog(0), 480 MessageImp(out), tcp::socket(ioservice), fLog(0), fVerbose(true), 477 481 fInTimeout(ioservice), fOutTimeout(ioservice), fConnectionTimer(ioservice), 478 482 fConnectionStatus(kDisconnected) -
trunk/FACT++/src/Connection.h
r11471 r13209 22 22 boost::asio::ip::tcp::endpoint fEndpoint; 23 23 24 bool fVerbose; 24 25 bool fDebugTx; 25 26 … … 141 142 bool IsConnecting() const { return fConnectionStatus==kConnecting; } 142 143 144 void SetVerbose(bool b=true) { fVerbose=b; } 143 145 void SetDebugTx(bool b=true) { fDebugTx=b; } 144 146
Note:
See TracChangeset
for help on using the changeset viewer.