Changeset 2517 for trunk/MagicSoft/Cosy/tcpip/MTcpIpIO.cc
- Timestamp:
- 11/17/03 13:40:14 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/tcpip/MTcpIpIO.cc
r2514 r2517 40 40 MTcpIpIO::~MTcpIpIO() 41 41 { 42 cout << "Delete TxSocket..." << flush; 42 // 43 // Make sure, that no loop waiting for connection 44 // is running anymore! 45 // 46 Stop(); 47 48 // 49 // Now delete all TCP/IP objects 50 // 51 cout << "Delete TxSocket " << fTxSocket << "..." << flush; 43 52 delete fTxSocket; 44 53 cout << "Done." << endl; 45 54 if (fServSock) 46 55 { 47 cout << "Delete ServSock ..." << flush;56 cout << "Delete ServSock " << fServSock << "..." << flush; 48 57 delete fServSock; 49 58 cout << "Done." << endl; … … 51 60 if (fRxSocket) 52 61 { 53 cout << "Delete RxSocket ..." << flush;62 cout << "Delete RxSocket " << fRxSocket << "..." << flush; 54 63 delete fRxSocket; 55 64 cout << "Done." << endl; … … 123 132 if (fRxSocket==0) 124 133 cout << "Error: TServerSock::Accept" << endl; 125 usleep(1); 126 } 134 usleep(10); 135 } 136 137 // Can happen in case of HasStopFlag() 138 if (fRxSocket==(void*)-1) 139 fRxSocket=NULL; 127 140 128 141 if (fRxSocket==NULL)
Note:
See TracChangeset
for help on using the changeset viewer.