Changeset 645 in ntrip
- Timestamp:
- Dec 19, 2007, 10:07:55 PM (17 years ago)
- Location:
- trunk/BNC
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/RTCM/RTCM2Decoder.h
r464 r645 33 33 public: 34 34 RTCM2Decoder(); 35 ~RTCM2Decoder();35 virtual ~RTCM2Decoder(); 36 36 virtual void Decode(char* buffer, int bufLen); 37 37 -
trunk/BNC/RTCM3/RTCM3Decoder.h
r511 r645 46 46 public: 47 47 RTCM3Decoder(); 48 ~RTCM3Decoder();49 v oid Decode(char* buffer = 0, int bufLen = 0);48 virtual ~RTCM3Decoder(); 49 virtual void Decode(char* buffer = 0, int bufLen = 0); 50 50 private: 51 51 struct RTCM3ParserData _Parser; -
trunk/BNC/RTIGS/RTIGSDecoder.h
r557 r645 33 33 public: 34 34 RTIGSDecoder(); 35 ~RTIGSDecoder();36 v oid Decode(char* buffer = 0, int bufLen = 0);35 virtual ~RTIGSDecoder(); 36 virtual void Decode(char* buffer = 0, int bufLen = 0); 37 37 private: 38 38 CGPS_Transform _GPSTrans; -
trunk/BNC/bncgetthread.cpp
r629 r645 132 132 } 133 133 134 #define AGENTVERSION "1.5" 134 135 // Connect to Caster, send the Request (static) 135 136 //////////////////////////////////////////////////////////////////////////// … … 162 163 QString uName = QUrl::fromPercentEncoding(mountPoint.userName().toAscii()); 163 164 QString passW = QUrl::fromPercentEncoding(mountPoint.password().toAscii()); 164 QByteArray userAndPwd = uName.toAscii() + ":" + passW.toAscii(); 165 QByteArray userAndPwd; 166 167 if(!uName.isEmpty() || !passW.isEmpty()) 168 { 169 userAndPwd = "Authorization: Basic " + (uName.toAscii() + ":" + 170 passW.toAscii()).toBase64() + "\r\n"; 171 } 165 172 166 173 QUrl hlp; … … 173 180 if ( proxyHost.isEmpty() ) { 174 181 if (hlp.path().indexOf("/") != 0) hlp.setPath("/"); 175 reqStr = "GET " + hlp.path().toAscii() + 176 " HTTP/1.0\r\n" 177 "User-Agent: NTRIP BNC 1.5\r\n" 178 "Authorization: Basic " + 179 userAndPwd.toBase64() + "\r\n"; 182 reqStr = "GET " + hlp.path().toAscii() + " HTTP/1.0\r\n"; 180 183 } else { 181 reqStr = "GET " + hlp.toEncoded() + 182 " HTTP/1.0\r\n" 183 "User-Agent: NTRIP BNC 1.5\r\n" 184 "Authorization: Basic " + 185 userAndPwd.toBase64() + "\r\n"; 186 } 187 if (hlp.path().indexOf(".skl") > 0) { reqStr += "Host: " + hlp.host().toAscii() + "\r\n"; } 188 reqStr += "\r\n"; 184 reqStr = "GET " + hlp.toEncoded() + " HTTP/1.0\r\n"; 185 } 186 reqStr += "User-Agent: NTRIP BNC/" AGENTVERSION "\r\n" 187 "Host: " + hlp.host().toAscii() + "\r\n" 188 + userAndPwd + "\r\n"; 189 189 190 190 // NMEA string to handle VRS stream -
trunk/BNC/bnctabledlg.cpp
r639 r645 217 217 _allLines) != success ) { 218 218 QMessageBox::warning(0, "BNC", "Cannot retrieve table of data"); 219 _buttonGet->setEnabled(true); 219 220 return; 220 221 }
Note:
See TracChangeset
for help on using the changeset viewer.