Changeset 8204 in ntrip for trunk/BNC/src/upload
- Timestamp:
- Dec 11, 2017, 3:00:40 PM (7 years ago)
- Location:
- trunk/BNC/src/upload
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/upload/bncrtnetuploadcaster.cpp
r8145 r8204 280 280 // Read first line (with epoch time) 281 281 // --------------------------------- 282 QTextStream in(lines[0].to Ascii());282 QTextStream in(lines[0].toLatin1()); 283 283 QString hlp; 284 284 int year, month, day, hour, min; … … 291 291 "bncRtnetUploadCaster: decode " + QByteArray(epoTime.datestr().c_str()) 292 292 + " " + QByteArray(epoTime.timestr().c_str()) + " " 293 + _casterID.to Ascii(), false));293 + _casterID.toLatin1(), false)); 294 294 295 295 struct ClockOrbit co; … … 369 369 t_prn prn; 370 370 371 QTextStream in(lines[ii].to Ascii());371 QTextStream in(lines[ii].toLatin1()); 372 372 373 373 in >> key; … … 401 401 } 402 402 // satellite specific parameters 403 char sys = key.mid(0, 1).at(0).to Ascii();403 char sys = key.mid(0, 1).at(0).toLatin1(); 404 404 int number = key.mid(1, 2).toInt(); 405 405 int flags = 0; -
trunk/BNC/src/upload/bncuploadcaster.cpp
r8153 r8204 90 90 _outSocket->write(_outBuffer); 91 91 _outSocket->flush(); 92 emit newBytes(_mountpoint.to Ascii(), _outBuffer.size());92 emit newBytes(_mountpoint.toLatin1(), _outBuffer.size()); 93 93 } 94 94 } … … 140 140 delete _outSocket; 141 141 _outSocket = 0; 142 emit(newMessage("Broadcaster: Connect timeout for " + _mountpoint.to Ascii(), true));142 emit(newMessage("Broadcaster: Connect timeout for " + _mountpoint.toLatin1(), true)); 143 143 return; 144 144 } 145 145 146 QByteArray msg = "SOURCE " + _password.to Ascii() + " /" +147 _mountpoint.to Ascii() + "\r\n" +146 QByteArray msg = "SOURCE " + _password.toLatin1() + " /" + 147 _mountpoint.toLatin1() + "\r\n" + 148 148 "Source-Agent: NTRIP BNC/" BNCVERSION "\r\n\r\n"; 149 149 … … 157 157 delete _outSocket; 158 158 _outSocket = 0; 159 emit(newMessage("Broadcaster: Connection broken for " + _mountpoint.to Ascii(), true));159 emit(newMessage("Broadcaster: Connection broken for " + _mountpoint.toLatin1(), true)); 160 160 } 161 161 else { 162 emit(newMessage("Broadcaster: Connection opened for " + _mountpoint.to Ascii(), true));162 emit(newMessage("Broadcaster: Connection opened for " + _mountpoint.toLatin1(), true)); 163 163 _sOpenTrial = 0; 164 164 }
Note:
See TracChangeset
for help on using the changeset viewer.