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
qnativesocketengine.cpp File Reference

(c90ee82789139a4001fcc10f3fa958f70087cb26)

#include "qnativesocketengine_p_p.h"
#include <qabstracteventdispatcher.h>
#include <qsocketnotifier.h>
#include <qnetworkinterface.h>
#include <private/qthread_p.h>
#include <private/qobject_p.h>
#include "qnetworkproxy.h"
#include "qabstractsocket.h"
#include "qtcpserver.h"
#include "qsctpserver.h"
#include "moc_qnativesocketengine_p.cpp"
+ Include dependency graph for qnativesocketengine.cpp:

Go to the source code of this file.

Classes

class  QReadNotifier
 
class  QWriteNotifier
 
class  QExceptionNotifier
 

Macros

#define Q_VOID
 
#define Q_CHECK_VALID_SOCKETLAYER(function, returnValue)
 
#define Q_CHECK_INVALID_SOCKETLAYER(function, returnValue)
 
#define Q_CHECK_STATE(function, checkState, returnValue)
 
#define Q_CHECK_NOT_STATE(function, checkState, returnValue)
 
#define Q_CHECK_STATES(function, state1, state2, returnValue)
 
#define Q_CHECK_STATES3(function, state1, state2, state3, returnValue)
 
#define Q_CHECK_TYPE(function, type, returnValue)
 
#define Q_CHECK_TYPES(function, type1, type2, returnValue)
 
#define Q_TR(a)   QT_TRANSLATE_NOOP(QNativeSocketEngine, a)
 

Macro Definition Documentation

◆ Q_CHECK_INVALID_SOCKETLAYER

#define Q_CHECK_INVALID_SOCKETLAYER ( function,
returnValue )
Value:
do { \
if (isValid()) { \
qWarning(""#function" was called on an already initialized socket device"); \
return returnValue; \
} } while (0)

Definition at line 114 of file qnativesocketengine.cpp.

◆ Q_CHECK_NOT_STATE

#define Q_CHECK_NOT_STATE ( function,
checkState,
returnValue )
Value:
do { \
if (d->socketState == (checkState)) { \
qWarning(""#function" was called in "#checkState); \
return (returnValue); \
} } while (0)

Definition at line 124 of file qnativesocketengine.cpp.

Referenced by QNativeSocketEngine::bytesAvailable(), QNativeSocketEngine::hasPendingDatagrams(), QNativeSocketEngine::waitForRead(), QNativeSocketEngine::waitForReadOrWrite(), and QNativeSocketEngine::waitForWrite().

◆ Q_CHECK_STATE

#define Q_CHECK_STATE ( function,
checkState,
returnValue )
Value:
do { \
if (d->socketState != (checkState)) { \
qWarning(""#function" was not called in "#checkState); \
return (returnValue); \
} } while (0)

Definition at line 119 of file qnativesocketengine.cpp.

Referenced by QNativeSocketEngine::accept(), QNativeSocketEngine::bind(), QNativeSocketEngine::joinMulticastGroup(), QNativeSocketEngine::leaveMulticastGroup(), QNativeSocketEngine::listen(), and QNativeSocketEngine::write().

◆ Q_CHECK_STATES

#define Q_CHECK_STATES ( function,
state1,
state2,
returnValue )
Value:
do { \
if (d->socketState != (state1) && d->socketState != (state2)) { \
qWarning(""#function" was called" \
" not in "#state1" or "#state2); \
return (returnValue); \
} } while (0)

Definition at line 129 of file qnativesocketengine.cpp.

Referenced by QNativeSocketEngine::read(), QNativeSocketEngine::readDatagram(), and QNativeSocketEngine::writeDatagram().

◆ Q_CHECK_STATES3

#define Q_CHECK_STATES3 ( function,
state1,
state2,
state3,
returnValue )
Value:
do { \
if (d->socketState != (state1) && d->socketState != (state2) && d->socketState != (state3)) { \
qWarning(""#function" was called" \
" not in "#state1" or "#state2); \
return (returnValue); \
} } while (0)

Definition at line 135 of file qnativesocketengine.cpp.

Referenced by QNativeSocketEngine::connectToHost().

◆ Q_CHECK_TYPE

#define Q_CHECK_TYPE ( function,
type,
returnValue )

◆ Q_CHECK_TYPES

#define Q_CHECK_TYPES ( function,
type1,
type2,
returnValue )
Value:
do { \
if (d->socketType != (type1) && d->socketType != (type2)) { \
qWarning(#function" was called by a" \
" socket other than "#type1" or "#type2); \
return (returnValue); \
} } while (0)

Definition at line 147 of file qnativesocketengine.cpp.

Referenced by QNativeSocketEngine::accept(), and QNativeSocketEngine::listen().

◆ Q_CHECK_VALID_SOCKETLAYER

◆ Q_TR

#define Q_TR ( a)    QT_TRANSLATE_NOOP(QNativeSocketEngine, a)

Definition at line 153 of file qnativesocketengine.cpp.

◆ Q_VOID

#define Q_VOID

Definition at line 106 of file qnativesocketengine.cpp.