Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/network/socket/qsocks5socketengine.cpp

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation ([email protected])
     
    5050#include "qhash.h"
    5151#include "qqueue.h"
    52 #include "qdatetime.h"
     52#include "q.h"
    5353#include "qmutex.h"
    5454#include "qthread.h"
     
    309309    QHostAddress peerAddress;
    310310    quint16 peerPort;
    311     QDateTime timeStamp;
     311    Q timeStamp;
    312312};
    313313
     
    370370        // qDebug() << "delete it";
    371371    }
    372     bindData->timeStamp = QDateTime::currentDateTime();
     372    bindData->timeStamp();
    373373    store.insert(socketDescriptor, bindData);
    374374    // start sweep timer if not started
     
    413413        while (it.hasNext()) {
    414414            it.next();
    415             if (it.value()->timeStamp.secsTo(QDateTime::currentDateTime()) > 350) {
     415            if (it.value()->timeStamp.) {
    416416                QSOCKS5_DEBUG << "QSocks5BindStore removing JJJJ";
    417417                it.remove();
     
    13561356
    13571357    int msecs = SOCKS5_BLOCKING_BIND_TIMEOUT;
    1358     QTime stopWatch;
     1358    Q stopWatch;
    13591359    stopWatch.start();
    13601360    d->data->controlSocket->connectToHost(d->proxyInfo.hostName(), d->proxyInfo.port());
     
    14561456        if (d->data->controlSocket->state() == QAbstractSocket::ConnectedState) {
    14571457            int msecs = 100;
    1458             QTime stopWatch;
     1458            Q stopWatch;
    14591459            stopWatch.start();
    14601460            while (!d->data->controlSocket->bytesToWrite()) {
     
    16751675        UdpAssociateSuccess;
    16761676
    1677     QTime stopWatch;
     1677    Q