Changeset 8275 in ntrip for trunk/BNC/src/upload
- Timestamp:
- Feb 7, 2018, 2:26:39 PM (7 years ago)
- Location:
- trunk/BNC/src/upload
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/upload/bncephuploadcaster.cpp
r7889 r8275 35 35 while (it.hasNext()) { 36 36 QStringList hlp = it.next().split(","); 37 if (hlp.size() > 3) {37 if (hlp.size() > 5) { 38 38 ++iRow; 39 39 int outPort = hlp[1].toInt(); 40 40 bncUploadCaster* newCaster = new bncUploadCaster(hlp[2], hlp[0], outPort, 41 hlp[3], iRow, sampl); 41 hlp[3], hlp[4], 42 hlp[5], iRow, sampl); 42 43 43 44 connect(newCaster, SIGNAL(newBytes(QByteArray,double)), -
trunk/BNC/src/upload/bncrtnetdecoder.cpp
r4176 r8275 35 35 * Created: 28-Mar-2011 36 36 * 37 * Changes: 37 * Changes: 38 38 * 39 39 * -----------------------------------------------------------------------*/ … … 46 46 47 47 // Constructor 48 //////////////////////////////////////////////////////////////////////// 48 //////////////////////////////////////////////////////////////////////// 49 49 bncRtnetDecoder::bncRtnetDecoder() { 50 50 bncSettings settings; … … 59 59 ++iRow; 60 60 int outPort = hlp[1].toInt(); 61 bool CoM = (hlp[ 5].toInt() == Qt::Checked);61 bool CoM = (hlp[7].toInt() == Qt::Checked); 62 62 int PID = 0; 63 if (hlp.size() > 8) {64 PID = hlp[ 8].toInt();63 if (hlp.size() > 10) { 64 PID = hlp[10].toInt(); 65 65 } 66 66 int SID = 0; 67 if (hlp.size() > 9) {68 SID = hlp[ 9].toInt();67 if (hlp.size() > 11) { 68 SID = hlp[11].toInt(); 69 69 } 70 70 int IOD = 0; 71 if (hlp.size() > 1 0) {72 IOD = hlp[1 0].toInt();71 if (hlp.size() > 12) { 72 IOD = hlp[12].toInt(); 73 73 } 74 74 bncRtnetUploadCaster* newCaster = new bncRtnetUploadCaster( 75 hlp[2], hlp[0], outPort, 76 hlp[3], hlp[4], CoM, 77 hlp[6], hlp[7], 75 hlp[2], hlp[0], outPort, 76 hlp[3], hlp[4], 77 hlp[5], hlp[6], CoM, 78 hlp[8], hlp[9], 78 79 PID, SID, IOD, iRow); 79 80 newCaster->start(); … … 84 85 85 86 // Destructor 86 //////////////////////////////////////////////////////////////////////// 87 //////////////////////////////////////////////////////////////////////// 87 88 bncRtnetDecoder::~bncRtnetDecoder() { 88 89 for (int ic = 0; ic < _casters.size(); ic++) { … … 92 93 93 94 // Decode Method 94 //////////////////////////////////////////////////////////////////////// 95 //////////////////////////////////////////////////////////////////////// 95 96 t_irc bncRtnetDecoder::Decode(char* buffer, int bufLen, vector<string>& errmsg) { 96 97 errmsg.clear(); -
trunk/BNC/src/upload/bncrtnetuploadcaster.cpp
r8204 r8275 28 28 //////////////////////////////////////////////////////////////////////////// 29 29 bncRtnetUploadCaster::bncRtnetUploadCaster(const QString& mountpoint, 30 const QString& outHost, int outPort, const QString& password, 30 const QString& outHost, int outPort, 31 const QString& ntripVersion, 32 const QString& userName, const QString& password, 31 33 const QString& crdTrafo, bool CoM, const QString& sp3FileName, 32 34 const QString& rnxFileName, int PID, int SID, int IOD, int iRow) : 33 bncUploadCaster(mountpoint, outHost, outPort, password, iRow, 0) {35 bncUploadCaster(mountpoint, outHost, outPort, ntripVersion, userName, password, iRow, 0) { 34 36 35 37 if (!outHost.isEmpty()) { -
trunk/BNC/src/upload/bncrtnetuploadcaster.h
r8145 r8275 20 20 bncRtnetUploadCaster(const QString& mountpoint, 21 21 const QString& outHost, int outPort, 22 const QString& password, 22 const QString& ntripVersion, 23 const QString& userName,const QString& password, 23 24 const QString& crdTrafo, bool CoM, 24 25 const QString& sp3FileName, -
trunk/BNC/src/upload/bncuploadcaster.cpp
r8204 r8275 27 27 bncUploadCaster::bncUploadCaster(const QString& mountpoint, 28 28 const QString& outHost, int outPort, 29 const QString& password, int iRow, 29 const QString& ntripVersion, 30 const QString& userName, const QString& password, 31 int iRow, 30 32 int rate) { 31 33 _mountpoint = mountpoint; 32 34 _outHost = outHost; 33 35 _outPort = outPort; 36 _ntripVersion = ntripVersion; 37 _userName = userName; 34 38 _password = password; 35 39 _outSocket = 0; -
trunk/BNC/src/upload/bncuploadcaster.h
r8252 r8275 11 11 public: 12 12 bncUploadCaster(const QString& mountpoint, 13 const QString& outHost, int outPort, 14 const QString& password, int iRow, int rate); 13 const QString& outHost, int outPort, 14 const QString& ntripVersion, 15 const QString& userName, const QString& password, 16 int iRow, int rate); 15 17 virtual void deleteSafely(); 16 18 void setOutBuffer(const QByteArray& outBuffer) { … … 21 23 protected: 22 24 virtual ~bncUploadCaster(); 23 QMutex _mutex; 25 QMutex _mutex; 24 26 QByteArray _outBuffer; 25 27 … … 35 37 QString _outHost; 36 38 int _outPort; 39 QString _userName; 37 40 QString _password; 41 QString _ntripVersion; 42 bool _secure; 38 43 QTcpSocket* _outSocket; 39 44 int _sOpenTrial;
Note:
See TracChangeset
for help on using the changeset viewer.