![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
\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 | comparesEqual (const QSocketDescriptor &lhs, const 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 62 of file qsocketnotifier.h.
| using QSocketDescriptor::DescriptorType = int |
Definition at line 69 of file qsocketnotifier.h.
|
inlinenoexcept |
Construct a QSocketDescriptor from a native socket descriptor.
Construct a QSocketDescriptor from a native socket descriptor.
Definition at line 74 of file qsocketnotifier.h.
|
inlinenoexcept |
Definition at line 85 of file qsocketnotifier.h.
|
inlinenoexcept |
Definition at line 83 of file qsocketnotifier.h.
|
friend |
Definition at line 88 of file qsocketnotifier.h.