Changeset 1364 in ntrip
- Timestamp:
- Dec 27, 2008, 10:51:48 PM (16 years ago)
- Location:
- trunk/BNC
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/BNC/bncsocket.cpp ¶
r1363 r1364 99 99 // 100 100 //////////////////////////////////////////////////////////////////////////// 101 QByteArray bncSocket::readLine( qint64 maxlen) {101 QByteArray bncSocket::readLine() { 102 102 if (_http) { 103 return ""; 104 /// return _buffer->readLine(maxlen); 103 int ind = _buffer.indexOf('\n'); 104 cout << "readLine " << ind << endl; 105 if (ind != -1) { 106 QByteArray ret = _buffer.left(ind+1); 107 cout << ret.data(); 108 _buffer = _buffer.right(_buffer.size()-ind-1); 109 return ret; 110 } 111 else { 112 return ""; 113 } 105 114 } 106 115 else if (_socket) { 107 return _socket->readLine( maxlen);116 return _socket->readLine(); 108 117 } 109 118 else { -
TabularUnified trunk/BNC/bncsocket.h ¶
r1363 r1364 15 15 qint64 bytesAvailable() const; 16 16 bool canReadLine() const; 17 QByteArray readLine( qint64 maxlen = 0);17 QByteArray readLine(); 18 18 void waitForReadyRead(int msecs = 30000); 19 19 qint64 read(char *data, qint64 maxlen); -
TabularUnified trunk/BNC/bnctabledlg.cpp ¶
r1363 r1364 204 204 first = false; 205 205 if (line.indexOf("SOURCETABLE 200 OK") != 0) { 206 break; 206 if (ntripVersion == "1") { 207 break; 208 } 207 209 } 208 210 }
Note:
See TracChangeset
for help on using the changeset viewer.