- Timestamp:
- Feb 8, 2007, 8:25:01 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bnccaster.cpp
r396 r397 307 307 while (is.hasNext()) { 308 308 QTcpSocket* sock = is.next(); 309 if (first) { 310 sock->write(&begEpoch, 1); 311 } 312 sock->write(&begObs, 1); 313 sock->write((char*) obs, numBytes); 314 if (!it.hasNext()) { 315 sock->write(&endEpoch, 1); 316 } 317 if ( !sock->waitForBytesWritten(100) ) { 318 emit(newMessage("bncCaster:: socket write timeout")); 309 if (sock->state() == QAbstractSocket::ConnectedState) { 310 if (first) { 311 sock->write(&begEpoch, 1); 312 } 313 sock->write(&begObs, 1); 314 sock->write((char*) obs, numBytes); 315 if (!it.hasNext()) { 316 sock->write(&endEpoch, 1); 317 } 319 318 } 320 319 }
Note:
See TracChangeset
for help on using the changeset viewer.