![]() |
Qt 6.x
The Qt SDK
|
\inmodule QtCore More...
#include <qsocketnotifier.h>
Public Types | |
using | DescriptorType = int |
Public Member Functions | |
Q_DECL_CONSTEXPR_NOT_WIN Q_IMPLICIT | QSocketDescriptor (DescriptorType descriptor=DescriptorType(-1)) noexcept |
Q_DECL_CONSTEXPR | operator DescriptorType () const noexcept |
Q_DECL_CONSTEXPR_NOT_WIN bool | isValid () const noexcept |
Friends | |
Q_DECL_CONSTEXPR_NOT_WIN bool | operator== (QSocketDescriptor lhs, QSocketDescriptor rhs) noexcept |
Q_DECL_CONSTEXPR_NOT_WIN bool | operator!= (QSocketDescriptor lhs, QSocketDescriptor rhs) noexcept |
\inmodule QtCore
A class which holds a native socket descriptor.
QSocketDescriptor makes it easier to handle native socket descriptors in cross-platform code.
On Windows it holds a {Qt::HANDLE}
and on Unix it holds an int
. The class will implicitly convert between the class and the native descriptor type.
Definition at line 61 of file qsocketnotifier.h.
using QSocketDescriptor::DescriptorType = int |
Definition at line 68 of file qsocketnotifier.h.
|
inlinenoexcept |
Construct a QSocketDescriptor from a native socket descriptor.
Construct a QSocketDescriptor from a native socket descriptor.
Definition at line 73 of file qsocketnotifier.h.
|
inlinenoexcept |
Definition at line 84 of file qsocketnotifier.h.
|
inlinenoexcept |
Definition at line 82 of file qsocketnotifier.h.
|
friend |
Definition at line 91 of file qsocketnotifier.h.
|
friend |
Definition at line 86 of file qsocketnotifier.h.