Changeset 380 in ntrip
- Timestamp:
- Jan 26, 2007, 3:36:00 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/test_bnc_qt.cpp
r379 r380 29 29 30 30 while (true) { 31 socket.waitForReadyRead(1000);32 31 if ( socket.bytesAvailable() ) { 33 32 int bytesRecv = socket.read(&flag, 1); 34 33 if (flag == begObs) { 35 socket.waitForReadyRead(1000); 36 if ( socket.bytesAvailable() ) { 34 if ( socket.bytesAvailable() >= sizeof(obs) ) { 37 35 bytesRecv = socket.read((char*) &obs, sizeof(obs)); 38 36 cout << setw(5) << obs.StatID << " " … … 53 51 } 54 52 } 53 else { 54 socket.waitForReadyRead(100); 55 } 55 56 } 56 57
Note:
See TracChangeset
for help on using the changeset viewer.