Changeset 3273 in ntrip


Ignore:
Timestamp:
Apr 10, 2011, 12:05:47 PM (14 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/upload
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/upload/bncephuploadcaster.cpp

    r3259 r3273  
    3232  }
    3333  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();
    3738
    3839    _ephUploadCaster = new bncUploadCaster(mountpoint, outHost, outPort,
    39                                          password, -1);
     40                                           password, -1, sampl);
    4041
    4142    connect(_ephUploadCaster, SIGNAL(newBytes(QByteArray,double)),
  • trunk/BNC/upload/bncrtnetuploadcaster.cpp

    r3272 r3273  
    3333                                 const QString& rnxFileName,
    3434                                 const QString& outFileName, int iRow) :
    35                bncUploadCaster(mountpoint, outHost, outPort, password, iRow) {
     35  bncUploadCaster(mountpoint, outHost, outPort, password, iRow, 0) {
    3636
    3737  _crdTrafo   = crdTrafo;
  • trunk/BNC/upload/bncuploadcaster.cpp

    r3236 r3273  
    2727bncUploadCaster::bncUploadCaster(const QString& mountpoint,
    2828                                 const QString& outHost, int outPort,
    29                                  const QString& password, int iRow) {
     29                                 const QString& password, int iRow,
     30                                 int rate) {
    3031  _mountpoint    = mountpoint;
    3132  _outHost       = outHost;
     
    3536  _sOpenTrial    = 0;
    3637  _iRow          = iRow;
     38  _rate          = rate;
     39  if      (_rate < 5) {
     40    _rate = 5;
     41  }
     42  else if (_rate > 60) {
     43    _rate = 60;
     44  }
    3745  _isToBeDeleted = false;
    3846
     
    8189      emit newBytes(_mountpoint.toAscii(), _outBuffer.size());
    8290    }
    83     sleep(5);
     91    sleep(_rate);
    8492  }
    8593}
  • trunk/BNC/upload/bncuploadcaster.h

    r3252 r3273  
    99  bncUploadCaster(const QString& mountpoint,
    1010                  const QString& outHost, int outPort,
    11                   const QString& password, int iRow);
     11                  const QString& password, int iRow, int rate);
    1212  virtual void deleteSafely();
    1313  void setOutBuffer(const QByteArray& outBuffer) {
     
    3737  QDateTime   _outSocketOpenTime;
    3838  int         _iRow;
     39  int         _rate;
    3940};
    4041
Note: See TracChangeset for help on using the changeset viewer.