23 if (!socketHandlers())
26 socketHandlers()->prepend(
this);
31 if (!socketHandlers())
34 socketHandlers()->removeAll(
this);
39 , hasSetSocketError(
false)
46 , inboundStreamCount(0)
47 , outboundStreamCount(0)
64#ifndef QT_NO_NETWORKPROXY
71 for (
int i = 0;
i < socketHandlers()->size();
i++) {
76#ifndef QT_NO_NETWORKPROXY
88 for (
int i = 0;
i < socketHandlers()->size();
i++) {
97 return d_func()->socketError;
102 return d_func()->socketErrorString;
114 d_func()->receiver = receiver;
120 receiver->readNotification();
126 receiver->writeNotification();
132 receiver->exceptionNotification();
138 receiver->closeNotification();
144 receiver->connectionNotification();
147#ifndef QT_NO_NETWORKPROXY
151 receiver->proxyAuthenticationRequired(
proxy, authenticator);
158 return d_func()->socketState;
163 d_func()->socketState =
state;
168 return d_func()->socketType;
178 return d_func()->socketProtocol;
183 d_func()->socketProtocol =
protocol;
188 return d_func()->localAddress;
193 d_func()->localAddress =
address;
198 return d_func()->localPort;
203 d_func()->localPort =
port;
208 return d_func()->peerAddress;
213 d_func()->peerAddress =
address;
218 return d_func()->peerPort;
223 d_func()->peerPort =
port;
228 return d_func()->inboundStreamCount;
233 return d_func()->outboundStreamCount;
238#include "moc_qabstractsocketengine_p.cpp"
QAbstractSocketEnginePrivate()
QAbstractSocket::SocketError error() const
QAbstractSocket::NetworkLayerProtocol protocol() const
void setPeerPort(quint16 port)
void setReceiver(QAbstractSocketEngineReceiver *receiver)
void setPeerAddress(const QHostAddress &address)
int outboundStreamCount() const
void setState(QAbstractSocket::SocketState state)
QAbstractSocket::SocketType socketType() const
void setLocalAddress(const QHostAddress &address)
void exceptionNotification()
QAbstractSocketEngine(QObject *parent=nullptr)
static QAbstractSocketEngine * createSocketEngine(QAbstractSocket::SocketType socketType, const QNetworkProxy &, QObject *parent)
void proxyAuthenticationRequired(const QNetworkProxy &proxy, QAuthenticator *authenticator)
QAbstractSocket::SocketState state() const
int inboundStreamCount() const
void setSocketType(QAbstractSocket::SocketType socketType)
QString errorString() const
quint16 localPort() const
QHostAddress peerAddress() const
void setLocalPort(quint16 port)
void setError(QAbstractSocket::SocketError error, const QString &errorString) const
void connectionNotification()
QHostAddress localAddress() const
void setProtocol(QAbstractSocket::NetworkLayerProtocol protocol)
The QAbstractSocket class provides the base functionality common to all socket types.
SocketState
This enum describes the different states in which a socket can be.
SocketError
This enum describes the socket errors that can occur.
SocketType
This enum describes the transport layer protocol.
The QAuthenticator class provides an authentication object.
The QHostAddress class provides an IP address.
The QNativeSocketEngine class provides low level access to a socket.
The QNetworkProxy class provides a network layer proxy.
QNetworkProxy::ProxyType type() const
Returns the proxy type for this instance.
QObject * parent() const
Returns a pointer to the parent object.
virtual ~QSocketEngineHandler()
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
DBusConnection const char DBusError * error
static QT_BEGIN_NAMESPACE const char * socketType(QSocketNotifier::Type type)
#define Q_GLOBAL_STATIC(TYPE, NAME,...)
GLuint GLuint64EXT address
#define QT_TRANSLATE_NOOP(scope, x)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent