Changeset 1730 in ntrip for trunk/BNC


Ignore:
Timestamp:
Mar 5, 2009, 10:43:50 PM (16 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncnetqueryudp.cpp

    r1729 r1730  
    7575  if (datagram.size() > 12) {
    7676    outData.append(datagram.mid(12));
    77     cout << outData.data() << endl;
    7877  }
    7978}
     
    133132////    }
    134133
    135     cout << "reqStr > " << reqStr.data() << "<" << endl;
    136 
    137134    char rtpbuffer[12 + reqStr.size()];
    138135    rtpbuffer[0]  = 128;
    139136    rtpbuffer[1]  =  97;
    140     rtpbuffer[2]  =   0;
    141     rtpbuffer[3]  =   0;
    142     rtpbuffer[4]  =   0;
    143     rtpbuffer[5]  =   0;
    144     rtpbuffer[6]  =   0;
    145     rtpbuffer[7]  =   0;
    146     rtpbuffer[8]  =   0;
    147     rtpbuffer[9]  =   0;
    148     rtpbuffer[10] =   0;
    149     rtpbuffer[11] =   0;
    150 
     137    for (int jj = 2; jj <= 11; jj++) {
     138      rtpbuffer[jj] = 0;
     139    }
    151140    for (int ii = 0; ii < reqStr.size(); ii++) {
    152141      rtpbuffer[12+ii] = reqStr[ii];
    153142    }
    154143
    155     _udpSocket->writeDatagram(rtpbuffer, 12+reqStr.size(), _address, _port);
     144    _udpSocket->writeDatagram(rtpbuffer, 12 + reqStr.size(), _address, _port);
    156145  }
    157146}
Note: See TracChangeset for help on using the changeset viewer.