![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <winsock2.h>#include <ws2tcpip.h>#include "qnativesocketengine_p_p.h"#include <qabstracteventdispatcher.h>#include <qsocketnotifier.h>#include <qdebug.h>#include <qdatetime.h>#include <qnetworkinterface.h>#include <qoperatingsystemversion.h>#include <qvarlengtharray.h>#include <algorithm>#include <chrono>Go to the source code of this file.
Macros | |
| #define | IPV6_V6ONLY 27 |
| #define | IP_HOPLIMIT 21 |
| #define | TCP_KEEPIDLE 3 |
| #define | TCP_KEEPINTVL 17 |
| #define | TCP_KEEPCNT 16 |
| #define | WS_ERROR_DEBUG(x) |
| #define | AF_INET6 23 /* Internetwork Version 6 */ |
| #define | SO_EXCLUSIVEADDRUSE ((int)(~SO_REUSEADDR)) /* disallow local address reuse */ |
| #define | IOC_VENDOR 0x18000000 |
| #define | _WSAIOW(x, y) |
| #define | SIO_UDP_CONNRESET _WSAIOW(IOC_VENDOR,12) |
| #define | WSA_FLAG_NO_HANDLE_INHERIT 0x80 |
Functions | |
| static void | qt_socket_getPortAndAddress (SOCKET socketDescriptor, const qt_sockaddr *sa, quint16 *port, QHostAddress *address) |
| static void | convertToLevelAndOption (QNativeSocketEngine::SocketOption opt, QAbstractSocket::NetworkLayerProtocol socketProtocol, int &level, int &n) |
| static QAbstractSocket::SocketType | qt_socket_getType (qintptr socketDescriptor) |
| static void | setErrorFromWSAError (int error, QNativeSocketEnginePrivate *d) |
| static bool | multicastMembershipHelper (QNativeSocketEnginePrivate *d, int how6, int how4, const QHostAddress &groupAddress, const QNetworkInterface &iface) |
| timeval | durationToTimeval (std::chrono::nanoseconds dur) noexcept |
Definition at line 272 of file qnativesocketengine_win.cpp.
| #define AF_INET6 23 /* Internetwork Version 6 */ |
Definition at line 111 of file qnativesocketengine_win.cpp.
| #define IOC_VENDOR 0x18000000 |
Definition at line 269 of file qnativesocketengine_win.cpp.
| #define IP_HOPLIMIT 21 |
Definition at line 35 of file qnativesocketengine_win.cpp.
| #define IPV6_V6ONLY 27 |
Definition at line 32 of file qnativesocketengine_win.cpp.
| #define SIO_UDP_CONNRESET _WSAIOW(IOC_VENDOR,12) |
Definition at line 274 of file qnativesocketengine_win.cpp.
| #define SO_EXCLUSIVEADDRUSE ((int)(~SO_REUSEADDR)) /* disallow local address reuse */ |
Definition at line 115 of file qnativesocketengine_win.cpp.
| #define TCP_KEEPCNT 16 |
Definition at line 44 of file qnativesocketengine_win.cpp.
| #define TCP_KEEPIDLE 3 |
Definition at line 38 of file qnativesocketengine_win.cpp.
| #define TCP_KEEPINTVL 17 |
Definition at line 41 of file qnativesocketengine_win.cpp.
| #define WS_ERROR_DEBUG | ( | x | ) |
Definition at line 106 of file qnativesocketengine_win.cpp.
| #define WSA_FLAG_NO_HANDLE_INHERIT 0x80 |
|
static |
Definition at line 153 of file qnativesocketengine_win.cpp.
|
inlinenoexcept |
Definition at line 1543 of file qnativesocketengine_win.cpp.
|
static |
|
inlinestatic |
Definition at line 122 of file qnativesocketengine_win.cpp.
|
inlinestatic |
Definition at line 246 of file qnativesocketengine_win.cpp.
|
static |
Definition at line 641 of file qnativesocketengine_win.cpp.
References QNativeSocketEnginePrivate::AccessErrorString, QNativeSocketEnginePrivate::AddressInuseErrorString, QNativeSocketEnginePrivate::AddressNotAvailableErrorString, QNativeSocketEnginePrivate::ConnectionRefusedErrorString, QNativeSocketEnginePrivate::ConnectionTimeOutErrorString, QNativeSocketEnginePrivate::HostUnreachableErrorString, QNativeSocketEnginePrivate::InvalidSocketErrorString, and QNativeSocketEnginePrivate::NetworkUnreachableErrorString.