42 #ifndef QABSTRACTSOCKETENGINE_P_H 43 #define QABSTRACTSOCKETENGINE_P_H 56 #include "QtNetwork/qhostaddress.h" 57 #include "QtNetwork/qabstractsocket.h" 58 #include "private/qobject_p.h" 64 #ifndef QT_NO_NETWORKINTERFACE 76 #ifndef QT_NO_NETWORKPROXY 102 MulticastLoopbackOption
109 virtual int socketDescriptor()
const = 0;
111 virtual bool isValid()
const = 0;
116 virtual bool listen() = 0;
117 virtual int accept() = 0;
118 virtual void close() = 0;
120 virtual qint64 bytesAvailable()
const = 0;
125 #ifndef QT_NO_UDPSOCKET 126 #ifndef QT_NO_NETWORKINTERFACE 127 virtual bool joinMulticastGroup(
const QHostAddress &groupAddress,
129 virtual bool leaveMulticastGroup(
const QHostAddress &groupAddress,
133 #endif // QT_NO_NETWORKINTERFACE 139 virtual bool hasPendingDatagrams()
const = 0;
140 virtual qint64 pendingDatagramSize()
const = 0;
141 #endif // QT_NO_UDPSOCKET 143 virtual qint64 bytesToWrite()
const = 0;
146 virtual bool setOption(
SocketOption option,
int value) = 0;
148 virtual bool waitForRead(
int msecs = 30000,
bool *timedOut = 0) = 0;
149 virtual bool waitForWrite(
int msecs = 30000,
bool *timedOut = 0) = 0;
150 virtual bool waitForReadOrWrite(
bool *readyToRead,
bool *readyToWrite,
151 bool checkRead,
bool checkWrite,
152 int msecs = 30000,
bool *timedOut = 0) = 0;
165 virtual bool isReadNotificationEnabled()
const = 0;
166 virtual void setReadNotificationEnabled(
bool enable) = 0;
167 virtual bool isWriteNotificationEnabled()
const = 0;
168 virtual void setWriteNotificationEnabled(
bool enable) = 0;
169 virtual bool isExceptionNotificationEnabled()
const = 0;
170 virtual void setExceptionNotificationEnabled(
bool enable) = 0;
177 #ifndef QT_NO_NETWORKPROXY 191 void setLocalPort(
quint16 port);
193 void setPeerPort(
quint16 port);
235 #endif // QABSTRACTSOCKETENGINE_P_H
#define QT_END_NAMESPACE
This macro expands to.
SocketType
This enum describes the transport layer protocol.
virtual void writeNotification()=0
QAbstractSocketEngineReceiver * receiver
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
NetworkLayerProtocol
This enum describes the network layer protocol values used in Qt.
The QString class provides a Unicode character string.
virtual void exceptionNotification()=0
The QObject class is the base class of all Qt objects.
Q_GUI_EXPORT QString errorString(EGLint code=eglGetError())
SocketState
This enum describes the different states in which a socket can be.
The QNetworkProxy class provides a network layer proxy.
#define QT_BEGIN_NAMESPACE
This macro expands to.
virtual void readNotification()=0
QString socketErrorString
SocketError
This enum describes the socket errors that can occur.
static const char * data(const QByteArray &arr)
QAbstractSocket::SocketError socketError
The QAuthenticator class provides an authentication object.
virtual ~QAbstractSocketEngineReceiver()
QAbstractSocket::SocketType socketType
#define Q_DECLARE_PUBLIC(Class)
QHostAddress localAddress
virtual void proxyAuthenticationRequired(const QNetworkProxy &proxy, QAuthenticator *authenticator)=0
QAbstractSocket::SocketState socketState
virtual void connectionNotification()=0
#define Q_AUTOTEST_EXPORT
#define Q_DECLARE_PRIVATE(Class)
The QNetworkInterface class provides a listing of the host's IP addresses and network interfaces...
The QHostAddress class provides an IP address.
QAbstractSocket::NetworkLayerProtocol socketProtocol