Changeset 635 in ntrip for trunk


Ignore:
Timestamp:
Dec 17, 2007, 1:37:31 PM (17 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bnc.pro

    r631 r635  
    22# Switch to debug configuration
    33# -----------------------------
    4 CONFIG -= release
    5 CONFIG += debug
     4### CONFIG -= release
     5### CONFIG += debug
    66
    77DEFINES += NO_RTCM3_MAIN
  • trunk/BNC/bnccaster.cpp

    r634 r635  
    4545#include "bncutils.h"
    4646#include "RTCM/GPSDecoder.h"
     47
    4748
    4849// Constructor
     
    268269            QTcpSocket* sock = is.next();
    269270            if (sock->state() == QAbstractSocket::ConnectedState) {
     271              int fd = sock->socketDescriptor();
    270272              if (first) {
    271                 sock->putChar(begEpoch);
     273                ::write(fd, &begEpoch, 1);
    272274              }
    273               sock->putChar(begObs);
    274               sock->write((const char*) &obs->_o, numBytes);
     275              ::write(fd, &begObs, 1);
     276              ::write(fd, &obs->_o, numBytes);
    275277              if (!it.hasNext()) {
    276                 sock->putChar(endEpoch);
     278                ::write(fd, &endEpoch, 1);
    277279              }
    278               sock->flush();
    279               sock->waitForBytesWritten(-1);
    280               sock->reset();
    281280            }
    282281          }
Note: See TracChangeset for help on using the changeset viewer.