Changeset 13209 for trunk/FACT++/src/Connection.cc
- Timestamp:
- 03/23/12 22:08:54 (13 years ago)
- File:
-
- 1 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)
Note:
See TracChangeset
for help on using the changeset viewer.