Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qabstractsocket.cpp File Reference

(505e7ec37d98da2010981ed17c39dd934edf47d1)

#include <QtNetwork/private/qtnetworkglobal_p.h>
#include "qabstractsocket.h"
#include "qabstractsocket_p.h"
#include "private/qhostinfo_p.h"
#include <qabstracteventdispatcher.h>
#include <qhostaddress.h>
#include <qhostinfo.h>
#include <qmetaobject.h>
#include <qpointer.h>
#include <qtimer.h>
#include <qdeadlinetimer.h>
#include <qscopedvaluerollback.h>
#include <qvarlengtharray.h>
#include <private/qthread_p.h>
#include <time.h>
#include "moc_qabstractsocket.cpp"
+ Include dependency graph for qabstractsocket.cpp:

Go to the source code of this file.

Macros

#define Q_CHECK_SOCKETENGINE(returnValue)
 
#define QABSTRACTSOCKET_BUFFERSIZE   32768
 
#define QT_TRANSFER_TIMEOUT   120000
 

Functions

static bool isProxyError (QAbstractSocket::SocketError error)
 
Q_NETWORK_EXPORT QDebug operator<< (QDebug debug, QAbstractSocket::SocketError error)
 
Q_NETWORK_EXPORT QDebug operator<< (QDebug debug, QAbstractSocket::SocketState state)
 

Variables

static constexpr auto DefaultConnectTimeout = 30s
 

Macro Definition Documentation

◆ Q_CHECK_SOCKETENGINE

#define Q_CHECK_SOCKETENGINE ( returnValue)
Value:
do { \
if (!d->socketEngine) { \
return returnValue; \
} } while (0)

Definition at line 456 of file qabstractsocket.cpp.

Referenced by QTcpServer::isListening(), QTcpServer::serverAddress(), QTcpServer::serverPort(), and QTcpServer::socketDescriptor().

◆ QABSTRACTSOCKET_BUFFERSIZE

#define QABSTRACTSOCKET_BUFFERSIZE   32768

Definition at line 462 of file qabstractsocket.cpp.

Referenced by QAbstractSocketPrivate::QAbstractSocketPrivate().

◆ QT_TRANSFER_TIMEOUT

#define QT_TRANSFER_TIMEOUT   120000

Definition at line 464 of file qabstractsocket.cpp.

Function Documentation

◆ isProxyError()

static bool isProxyError ( QAbstractSocket::SocketError error)
static

Definition at line 476 of file qabstractsocket.cpp.

References error, QAbstractSocket::ProxyAuthenticationRequiredError, QAbstractSocket::ProxyConnectionClosedError, QAbstractSocket::ProxyConnectionRefusedError, QAbstractSocket::ProxyConnectionTimeoutError, QAbstractSocket::ProxyNotFoundError, and QAbstractSocket::ProxyProtocolError.

Referenced by QAbstractSocketPrivate::_q_testConnection().

+ Here is the caller graph for this function:

◆ operator<<() [1/2]

◆ operator<<() [2/2]

Variable Documentation

◆ DefaultConnectTimeout

constexpr auto DefaultConnectTimeout = 30s
staticconstexpr