Changeset 846 for trunk/src/network/socket/qsocks5socketengine.cpp
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/network/socket/qsocks5socketengine.cpp
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation ([email protected]) … … 50 50 #include "qhash.h" 51 51 #include "qqueue.h" 52 #include "q datetime.h"52 #include "q.h" 53 53 #include "qmutex.h" 54 54 #include "qthread.h" … … 309 309 QHostAddress peerAddress; 310 310 quint16 peerPort; 311 Q DateTimetimeStamp;311 Q timeStamp; 312 312 }; 313 313 … … 370 370 // qDebug() << "delete it"; 371 371 } 372 bindData->timeStamp = QDateTime::currentDateTime();372 bindData->timeStamp(); 373 373 store.insert(socketDescriptor, bindData); 374 374 // start sweep timer if not started … … 413 413 while (it.hasNext()) { 414 414 it.next(); 415 if (it.value()->timeStamp. secsTo(QDateTime::currentDateTime()) > 350) {415 if (it.value()->timeStamp.) { 416 416 QSOCKS5_DEBUG << "QSocks5BindStore removing JJJJ"; 417 417 it.remove(); … … 1356 1356 1357 1357 int msecs = SOCKS5_BLOCKING_BIND_TIMEOUT; 1358 Q TimestopWatch;1358 Q stopWatch; 1359 1359 stopWatch.start(); 1360 1360 d->data->controlSocket->connectToHost(d->proxyInfo.hostName(), d->proxyInfo.port()); … … 1456 1456 if (d->data->controlSocket->state() == QAbstractSocket::ConnectedState) { 1457 1457 int msecs = 100; 1458 Q TimestopWatch;1458 Q stopWatch; 1459 1459 stopWatch.start(); 1460 1460 while (!d->data->controlSocket->bytesToWrite()) { … … 1675 1675 UdpAssociateSuccess; 1676 1676 1677 Q TimestopWatch;1677 Q