42 #ifndef QABSTRACTSOCKET_P_H 43 #define QABSTRACTSOCKET_P_H 56 #include "QtNetwork/qabstractsocket.h" 57 #include "QtCore/qbytearray.h" 58 #include "QtCore/qlist.h" 59 #include "QtCore/qtimer.h" 60 #include "private/qringbuffer_p.h" 61 #include "private/qiodevice_p.h" 62 #include "private/qabstractsocketengine_p.h" 81 #ifndef QT_NO_NETWORKPROXY 84 q->proxyAuthenticationRequired(proxy, authenticator);
123 #ifndef QT_NO_NETWORKPROXY 169 #endif // QABSTRACTSOCKET_P_H
void _q_forceDisconnect()
int cachedSocketDescriptor
#define QT_END_NAMESPACE
This macro expands to.
SocketType
This enum describes the transport layer protocol.
void proxyAuthenticationRequired(const QNetworkProxy &proxy, QAuthenticator *authenticator)
QList< QHostAddress > addresses
void setupSocketNotifiers()
bool readFromSocket()
Reads data from the socket layer into the read buffer.
static void resumeSocketNotifiers(QAbstractSocket *)
void resetSocketLayer()
Resets the socket layer, clears the read and write buffers and deletes any socket notifiers...
NetworkLayerProtocol
This enum describes the network layer protocol values used in Qt.
The QString class provides a Unicode character string.
bool readSocketNotifierStateSet
SocketState
This enum describes the different states in which a socket can be.
void startConnectingByName(const QString &host)
Starts the connection to host, like _q_startConnecting below, but without hostname resolution...
QAbstractSocket::SocketState state
virtual ~QAbstractSocketPrivate()
Destructs the QAbstractSocket.
The QNetworkProxy class provides a network layer proxy.
bool prePauseReadSocketNotifierState
#define QT_BEGIN_NAMESPACE
This macro expands to.
void _q_startConnecting(const QHostInfo &hostInfo)
Slot connected to QHostInfo::lookupHost() in connectToHost().
SocketError
This enum describes the socket errors that can occur.
bool prePauseExceptionSocketNotifierState
QAbstractSocket::SocketError socketError
static QAbstractSocketEngine * getSocketEngine(QAbstractSocket *)
The QHostInfo class provides static functions for host name lookups.
void _q_abortConnectionAttempt()
This function is called after a certain number of seconds has passed while waiting for a connection...
The QAuthenticator class provides an authentication object.
void resolveProxy(quint16 port)
#define Q_DECLARE_PUBLIC(Class)
void connectionNotification()
Slot connected to a notification of connection status change.
void _q_connectToNextAddress()
Called by a queued or direct connection from _q_startConnecting() or _q_testConnection(), this function takes the first address of the pending addresses list and tries to connect to it.
QAbstractSocketEngine * socketEngine
bool readSocketNotifierCalled
QAbstractSocket::SocketType socketType
void fetchConnectionParameters()
Sets up the internal state after the connection has succeeded.
bool prePauseWriteSocketNotifierState
bool flush()
Writes pending data in the write buffers to the socket.
bool readSocketNotifierState
bool initSocketLayer(QAbstractSocket::NetworkLayerProtocol protocol)
Initializes the socket layer to by of type type, using the network layer protocol protocol...
void resolveProxy(const QString &hostName, quint16 port)
Resolve the proxy to its final value.
QAbstractSocketPrivate()
Constructs a QAbstractSocketPrivate.
The QHostAddress class provides an IP address.
void _q_testConnection()
Tests if a connection has been established.
void exceptionNotification()
The QTimer class provides repetitive and single-shot timers.
static void pauseSocketNotifiers(QAbstractSocket *)
QHostAddress localAddress
bool canReadNotification()
Slot connected to the read socket notifier.
bool canWriteNotification()
Slot connected to the write socket notifier.
The QAbstractSocket class provides the base functionality common to all socket types.