- Timestamp:
- Dec 17, 2007, 12:01:55 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bnccaster.cpp
r631 r632 269 269 if (sock->state() == QAbstractSocket::ConnectedState) { 270 270 if (first) { 271 sock-> write(&begEpoch, 1);271 sock->putChar(begEpoch); 272 272 } 273 sock->write(&begObs, 1); 274 sock->write((char*) &obs->_o, numBytes); 273 sock->putChar(begObs); 274 char* bytes = new char[numBytes]; 275 memcpy(bytes, &obs->_o, numBytes); 276 for (int ii = 0; ii < numBytes; ii++) { 277 sock->putChar(bytes[ii]); 278 } 279 delete [] bytes; 275 280 if (!it.hasNext()) { 276 sock-> write(&endEpoch, 1);281 sock->putChar(endEpoch); 277 282 } 283 sock->flush(); 284 sock->waitForBytesWritten(-1); 278 285 } 279 286 }
Note:
See TracChangeset
for help on using the changeset viewer.