diff options
Diffstat (limited to 'src/network/socket/qnativesocketengine.cpp')
-rw-r--r-- | src/network/socket/qnativesocketengine.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/network/socket/qnativesocketengine.cpp b/src/network/socket/qnativesocketengine.cpp index 3f7c0d94e1..8947a7ee8a 100644 --- a/src/network/socket/qnativesocketengine.cpp +++ b/src/network/socket/qnativesocketengine.cpp @@ -1113,7 +1113,7 @@ bool QNativeSocketEngine::waitForReadOrWrite(bool *readyToRead, bool *readyToWri int msecs, bool *timedOut) { Q_D(QNativeSocketEngine); - Q_CHECK_VALID_SOCKETLAYER(QNativeSocketEngine::waitForWrite(), false); + Q_CHECK_VALID_SOCKETLAYER(QNativeSocketEngine::waitForReadOrWrite(), false); Q_CHECK_NOT_STATE(QNativeSocketEngine::waitForReadOrWrite(), QAbstractSocket::UnconnectedState, false); @@ -1162,7 +1162,8 @@ bool QNativeSocketEngine::waitForReadOrWrite(bool *readyToRead, bool *readyToWri return ret > 0; } -/*! +#if 0 // currently unused +/* Returns the size of the operating system's socket receive buffer. Depending on the operating system, this size may be different from what has been set earlier with @@ -1174,7 +1175,7 @@ qint64 QNativeSocketEngine::receiveBufferSize() const return option(ReceiveBufferSocketOption); } -/*! +/* Sets the size of the operating system receive buffer to \a size. For clients, this should be set before connectToHost() is called; @@ -1195,7 +1196,7 @@ void QNativeSocketEngine::setReceiveBufferSize(qint64 size) setOption(ReceiveBufferSocketOption, size); } -/*! +/* Returns the size of the operating system send buffer. Depending on the operating system, this size may be different from what has been set earlier with setSendBufferSize(). @@ -1206,7 +1207,7 @@ qint64 QNativeSocketEngine::sendBufferSize() const return option(SendBufferSocketOption); } -/*! +/* Sets the size of the operating system send buffer to \a size. The operating system send buffer size effectively limits how much @@ -1220,7 +1221,7 @@ void QNativeSocketEngine::setSendBufferSize(qint64 size) Q_CHECK_VALID_SOCKETLAYER(QNativeSocketEngine::setSendBufferSize(), Q_VOID); setOption(SendBufferSocketOption, size); } - +#endif /*! Sets the option \a option to the value \a value. |