Changeset 7661 in ntrip
- Timestamp:
- Jan 6, 2016, 5:45:52 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/upload/bncuploadcaster.cpp
r5070 r7661 11 11 * Created: 29-Mar-2011 12 12 * 13 * Changes: 13 * Changes: 14 14 * 15 15 * -----------------------------------------------------------------------*/ 16 16 17 17 #include <math.h> 18 #include "bncuploadcaster.h" 18 #include "bncuploadcaster.h" 19 19 #include "bncversion.h" 20 20 #include "bnccore.h" … … 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 30 int rate) { 31 31 _mountpoint = mountpoint; … … 45 45 _isToBeDeleted = false; 46 46 47 connect(this, SIGNAL(newMessage(QByteArray,bool)), 47 connect(this, SIGNAL(newMessage(QByteArray,bool)), 48 48 BNC_CORE, SLOT(slotMessage(const QByteArray,bool))); 49 49 50 50 if (BNC_CORE->_uploadTableItems.find(_iRow) != BNC_CORE->_uploadTableItems.end()){ 51 connect(this, SIGNAL(newBytes(QByteArray,double)), 52 BNC_CORE->_uploadTableItems.value(iRow), 51 connect(this, SIGNAL(newBytes(QByteArray,double)), 52 BNC_CORE->_uploadTableItems.value(iRow), 53 53 SLOT(slotNewBytes(const QByteArray,double))); 54 54 } … … 69 69 if (isRunning()) { 70 70 wait(); 71 } 72 if (_outSocket) { 73 delete _outSocket; 71 74 } 72 75 } … … 111 114 } 112 115 113 if (_outSocket != 0 && 116 if (_outSocket != 0 && 114 117 _outSocket->state() == QAbstractSocket::ConnectedState) { 115 118 return; … … 141 144 } 142 145 143 QByteArray msg = "SOURCE " + _password.toAscii() + " /" + 146 QByteArray msg = "SOURCE " + _password.toAscii() + " /" + 144 147 _mountpoint.toAscii() + "\r\n" + 145 148 "Source-Agent: NTRIP BNC/" BNCVERSION "\r\n\r\n";
Note:
See TracChangeset
for help on using the changeset viewer.