Changeset 11130 in ntrip for trunk/BNC/src/bncnetqueryrtp.cpp
- Timestamp:
- Oct 28, 2026, 9:32:30 AM (10 days ago)
- File:
-
- 1 edited
-
trunk/BNC/src/bncnetqueryrtp.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncnetqueryrtp.cpp
r11128 r11130 110 110 111 111 const int timeOut = 5000; 112 const int maxHeaderLines = 100; // of an RTSP answer 112 113 113 114 _status = running; … … 177 178 QByteArray serverPort; 178 179 QString line = in.readLine(); 179 while (!line.isEmpty()) { 180 int nLines = 0; 181 while (!line.isEmpty() && ++nLines <= maxHeaderLines) { 180 182 if (line.indexOf("Session:") == 0) { 181 183 _session = line.mid(9).toLatin1(); … … 226 228 QTextStream in(_socket); 227 229 line = in.readLine(); 228 while (!line.isEmpty()) { 230 nLines = 0; 231 while (!line.isEmpty() && ++nLines <= maxHeaderLines) { 229 232 if (line.indexOf("200 OK") != -1) { 230 233 emit newMessage(_url.toEncoded(QUrl::RemoveUserInfo).replace(0,1,"")
Note:
See TracChangeset
for help on using the changeset viewer.
