- Timestamp:
- Dec 17, 2007, 1:37:31 PM (17 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bnc.pro
r631 r635 2 2 # Switch to debug configuration 3 3 # ----------------------------- 4 CONFIG -= release5 CONFIG += debug4 ### CONFIG -= release 5 ### CONFIG += debug 6 6 7 7 DEFINES += NO_RTCM3_MAIN -
trunk/BNC/bnccaster.cpp
r634 r635 45 45 #include "bncutils.h" 46 46 #include "RTCM/GPSDecoder.h" 47 47 48 48 49 // Constructor … … 268 269 QTcpSocket* sock = is.next(); 269 270 if (sock->state() == QAbstractSocket::ConnectedState) { 271 int fd = sock->socketDescriptor(); 270 272 if (first) { 271 sock->putChar(begEpoch);273 ::write(fd, &begEpoch, 1); 272 274 } 273 sock->putChar(begObs);274 sock->write((const char*)&obs->_o, numBytes);275 ::write(fd, &begObs, 1); 276 ::write(fd, &obs->_o, numBytes); 275 277 if (!it.hasNext()) { 276 sock->putChar(endEpoch);278 ::write(fd, &endEpoch, 1); 277 279 } 278 sock->flush();279 sock->waitForBytesWritten(-1);280 sock->reset();281 280 } 282 281 }
Note:
See TracChangeset
for help on using the changeset viewer.