Changeset 3273 in ntrip
- Timestamp:
- Apr 10, 2011, 12:05:47 PM (14 years ago)
- Location:
- trunk/BNC/upload
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/upload/bncephuploadcaster.cpp
r3259 r3273 32 32 } 33 33 else { 34 QString outHost = settings.value("uploadEphHost").toString(); 35 int outPort = settings.value("uploadEphPort").toInt(); 36 QString password = settings.value("uploadEphPassword").toString(); 34 QString outHost = settings.value("uploadEphHost").toString(); 35 int outPort = settings.value("uploadEphPort").toInt(); 36 QString password = settings.value("uploadEphPassword").toString(); 37 int sampl = settings.value("uploadSampl").toInt(); 37 38 38 39 _ephUploadCaster = new bncUploadCaster(mountpoint, outHost, outPort, 39 password, -1);40 password, -1, sampl); 40 41 41 42 connect(_ephUploadCaster, SIGNAL(newBytes(QByteArray,double)), -
trunk/BNC/upload/bncrtnetuploadcaster.cpp
r3272 r3273 33 33 const QString& rnxFileName, 34 34 const QString& outFileName, int iRow) : 35 bncUploadCaster(mountpoint, outHost, outPort, password, iRow) {35 bncUploadCaster(mountpoint, outHost, outPort, password, iRow, 0) { 36 36 37 37 _crdTrafo = crdTrafo; -
trunk/BNC/upload/bncuploadcaster.cpp
r3236 r3273 27 27 bncUploadCaster::bncUploadCaster(const QString& mountpoint, 28 28 const QString& outHost, int outPort, 29 const QString& password, int iRow) { 29 const QString& password, int iRow, 30 int rate) { 30 31 _mountpoint = mountpoint; 31 32 _outHost = outHost; … … 35 36 _sOpenTrial = 0; 36 37 _iRow = iRow; 38 _rate = rate; 39 if (_rate < 5) { 40 _rate = 5; 41 } 42 else if (_rate > 60) { 43 _rate = 60; 44 } 37 45 _isToBeDeleted = false; 38 46 … … 81 89 emit newBytes(_mountpoint.toAscii(), _outBuffer.size()); 82 90 } 83 sleep( 5);91 sleep(_rate); 84 92 } 85 93 } -
trunk/BNC/upload/bncuploadcaster.h
r3252 r3273 9 9 bncUploadCaster(const QString& mountpoint, 10 10 const QString& outHost, int outPort, 11 const QString& password, int iRow );11 const QString& password, int iRow, int rate); 12 12 virtual void deleteSafely(); 13 13 void setOutBuffer(const QByteArray& outBuffer) { … … 37 37 QDateTime _outSocketOpenTime; 38 38 int _iRow; 39 int _rate; 39 40 }; 40 41
Note:
See TracChangeset
for help on using the changeset viewer.