Changeset 10221 in ntrip for trunk/BNC/src/upload
- Timestamp:
- Oct 6, 2023, 12:31:04 PM (14 months ago)
- Location:
- trunk/BNC/src/upload
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/upload/bncrtnetuploadcaster.cpp
r10124 r10221 862 862 } 863 863 if (co.NumberOfSat[CLOCKORBIT_SATGLONASS] > 0) { 864 char obuffer[CLOCKORBIT_BUFFERSIZE] = { 0};864 char obuffer[CLOCKORBIT_BUFFERSIZE] = {'\0'}; 865 865 if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) { 866 866 co.UpdateInterval = ephUpdInd; … … 883 883 } 884 884 if (co.NumberOfSat[CLOCKORBIT_SATGALILEO] > 0) { 885 char obuffer[CLOCKORBIT_BUFFERSIZE] = { 0};885 char obuffer[CLOCKORBIT_BUFFERSIZE] = {'\0'}; 886 886 if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) { 887 887 co.UpdateInterval = ephUpdInd; … … 903 903 } 904 904 if (co.NumberOfSat[CLOCKORBIT_SATQZSS] > 0) { 905 char obuffer[CLOCKORBIT_BUFFERSIZE] = { 0};905 char obuffer[CLOCKORBIT_BUFFERSIZE] = {'\0'}; 906 906 if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) { 907 907 co.UpdateInterval = ephUpdInd; … … 922 922 } 923 923 if (co.NumberOfSat[CLOCKORBIT_SATSBAS] > 0) { 924 char obuffer[CLOCKORBIT_BUFFERSIZE] = { 0};924 char obuffer[CLOCKORBIT_BUFFERSIZE] = {'\0'}; 925 925 if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) { 926 926 co.UpdateInterval = ephUpdInd; … … 940 940 } 941 941 if (co.NumberOfSat[CLOCKORBIT_SATBDS] > 0) { 942 char obuffer[CLOCKORBIT_BUFFERSIZE] = { 0};942 char obuffer[CLOCKORBIT_BUFFERSIZE] = {'\0'}; 943 943 if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) { 944 944 co.UpdateInterval = ephUpdInd; … … 968 968 || bias.NumberOfSat[CLOCKORBIT_SATSBAS] > 0 969 969 || bias.NumberOfSat[CLOCKORBIT_SATBDS] > 0) { 970 char obuffer[CLOCKORBIT_BUFFERSIZE] = { 0};970 char obuffer[CLOCKORBIT_BUFFERSIZE] = {'\0'}; 971 971 if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) { 972 972 int len = _ssrCorr->MakeCodeBias(&bias, _ssrCorr->CBTYPE_AUTO, 0, obuffer, sizeof(obuffer)); … … 987 987 || phasebias.NumberOfSat[CLOCKORBIT_SATBDS] > 0) 988 988 && (_phaseBiasInformationDecoded)) { 989 char obuffer[CLOCKORBIT_BUFFERSIZE] = { 0};989 char obuffer[CLOCKORBIT_BUFFERSIZE] = {'\0'}; 990 990 if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) { 991 991 int len = _ssrCorr->MakePhaseBias(&phasebias, _ssrCorr->PBTYPE_AUTO, 0, obuffer, sizeof(obuffer)); … … 1000 1000 QByteArray hlpBufferVtec; 1001 1001 if (vtec.NumLayers > 0) { 1002 char obuffer[CLOCKORBIT_BUFFERSIZE] = { 0};1002 char obuffer[CLOCKORBIT_BUFFERSIZE] = {'\0'}; 1003 1003 int len = _ssrCorr->MakeVTEC(&vtec, 0, obuffer, sizeof(obuffer)); 1004 1004 if (len > 0) { -
trunk/BNC/src/upload/bncuploadcaster.cpp
r9853 r10221 294 294 msg = "SOURCE " + _password.toLatin1() + " /" + _mountpoint.toLatin1() 295 295 + "\r\n" + "Source-Agent: NTRIP BNC/" BNCVERSION "\r\n\r\n"; 296 _outSocket->write(msg); 297 _outSocket->waitForBytesWritten(); 298 _outSocket->waitForReadyRead(); 296 299 } else { 297 300 msg = "POST " + _postExtension.toLatin1() + "/" + _mountpoint.toLatin1() … … 301 304 + "User-Agent: NTRIP BNC/" BNCVERSION " (" + BNC_OS + ")\r\n" 302 305 + "Connection: close\r\n" + "Transfer-Encoding: chunked\r\n\r\n"; 303 }304 _outSocket->write(msg);305 _outSocket->waitForBytesWritten();306 _outSocket->waitForReadyRead();306 _outSocket->write(msg); 307 _outSocket->waitForBytesWritten(); 308 _outSocket->waitForReadyRead(); 309 } 307 310 308 311 QByteArray ans = _outSocket->readAll();
Note:
See TracChangeset
for help on using the changeset viewer.