Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qnativesocketengine.cpp File Reference

(8e06365bee31ef5a1980b7b24d1564e3d769cfc7)

#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)

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)
DBusConnection const char DBusError DBusBusType DBusError return DBusConnection DBusHandleMessageFunction function
[0]

Definition at line 120 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 130 of file qnativesocketengine.cpp.

◆ 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 125 of file qnativesocketengine.cpp.

◆ 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 135 of file qnativesocketengine.cpp.

◆ 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 141 of file qnativesocketengine.cpp.

◆ Q_CHECK_TYPE

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

Definition at line 147 of file qnativesocketengine.cpp.

◆ 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 153 of file qnativesocketengine.cpp.

◆ Q_CHECK_VALID_SOCKETLAYER

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

Definition at line 115 of file qnativesocketengine.cpp.

◆ Q_TR

#define Q_TR ( a)
Value:
The QNativeSocketEngine class provides low level access to a socket.
GLboolean GLboolean GLboolean GLboolean a
#define QT_TRANSLATE_NOOP(scope, x)

Definition at line 159 of file qnativesocketengine.cpp.

◆ Q_VOID

#define Q_VOID

Definition at line 112 of file qnativesocketengine.cpp.