Qt 4.8
Macros | Functions
qhttpsocketengine.cpp File Reference
#include "qhttpsocketengine_p.h"
#include "qtcpsocket.h"
#include "qhostaddress.h"
#include "qurl.h"
#include "qhttp.h"
#include "qelapsedtimer.h"
#include "qnetworkinterface.h"
#include <qdebug.h>

Go to the source code of this file.

Macros

#define DEBUG
 

Functions

static int qt_timeout_value (int msecs, int elapsed)
 

Macro Definition Documentation

◆ DEBUG

#define DEBUG

Definition at line 55 of file qhttpsocketengine.cpp.

Function Documentation

◆ qt_timeout_value()

static int qt_timeout_value ( int  msecs,
int  elapsed 
)
static

Definition at line 344 of file qhttpsocketengine.cpp.

Referenced by QHttpSocketEngine::waitForRead(), and QHttpSocketEngine::waitForWrite().

345 {
346  if (msecs == -1)
347  return -1;
348 
349  int timeout = msecs - elapsed;
350  return timeout < 0 ? 0 : timeout;
351 }
static double elapsed(qint64 after, qint64 before)