![]() |
Qt 6.x
The Qt SDK
|
#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>
Go to the source code of this file.
Macros | |
#define | IPV6_V6ONLY 27 |
#define | IP_HOPLIMIT 21 |
#define | WS_ERROR_DEBUG(x) Q_UNUSED(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) (IOC_IN|(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) |
Definition at line 252 of file qnativesocketengine_win.cpp.
#define AF_INET6 23 /* Internetwork Version 6 */ |
Definition at line 100 of file qnativesocketengine_win.cpp.
#define IOC_VENDOR 0x18000000 |
Definition at line 249 of file qnativesocketengine_win.cpp.
#define IP_HOPLIMIT 21 |
Definition at line 33 of file qnativesocketengine_win.cpp.
#define IPV6_V6ONLY 27 |
Definition at line 30 of file qnativesocketengine_win.cpp.
#define SIO_UDP_CONNRESET _WSAIOW(IOC_VENDOR,12) |
Definition at line 254 of file qnativesocketengine_win.cpp.
#define SO_EXCLUSIVEADDRUSE ((int)(~SO_REUSEADDR)) /* disallow local address reuse */ |
Definition at line 104 of file qnativesocketengine_win.cpp.
Definition at line 95 of file qnativesocketengine_win.cpp.
#define WSA_FLAG_NO_HANDLE_INHERIT 0x80 |
|
static |
Definition at line 142 of file qnativesocketengine_win.cpp.
References QAbstractSocketEngine::AddressReusable, QAbstractSocket::AnyIPProtocol, QAbstractSocketEngine::BindExclusively, QAbstractSocketEngine::BroadcastSocketOption, IP_HOPLIMIT, QAbstractSocket::IPv4Protocol, QAbstractSocket::IPv6Protocol, QAbstractSocketEngine::KeepAliveOption, QAbstractSocketEngine::LowDelayOption, QAbstractSocketEngine::MaxStreamsSocketOption, QAbstractSocketEngine::MulticastLoopbackOption, QAbstractSocketEngine::MulticastTtlOption, QAbstractSocketEngine::NonBlockingSocketOption, opt, QAbstractSocketEngine::PathMtuInformation, QAbstractSocketEngine::ReceiveBufferSocketOption, QAbstractSocketEngine::ReceiveHopLimit, QAbstractSocketEngine::ReceiveOutOfBandData, QAbstractSocketEngine::ReceivePacketInformation, QAbstractSocketEngine::SendBufferSocketOption, SO_EXCLUSIVEADDRUSE, and QAbstractSocketEngine::TypeOfServiceOption.
|
static |
Definition at line 825 of file qnativesocketengine_win.cpp.
References d, QAbstractSocket::IPv4Protocol, QAbstractSocket::IPv6Protocol, QAbstractSocket::NetworkError, QNativeSocketEnginePrivate::NetworkUnreachableErrorString, QNativeSocketEnginePrivate::OperationUnsupportedErrorString, QHostAddress::protocol(), QNativeSocketEnginePrivate::ProtocolUnsupportedErrorString, QHostAddress::toIPv4Address(), QHostAddress::toIPv6Address(), and QAbstractSocket::UnsupportedSocketOperationError.
|
inlinestatic |
Definition at line 111 of file qnativesocketengine_win.cpp.
References qt_sockaddr::a, qt_sockaddr::a4, qt_sockaddr::a6, AF_INET6, i, and QString::number().
|
inlinestatic |
Definition at line 226 of file qnativesocketengine_win.cpp.
References QAbstractSocket::TcpSocket, QAbstractSocket::UdpSocket, QAbstractSocket::UnknownSocketType, and WS_ERROR_DEBUG.
|
static |
Definition at line 529 of file qnativesocketengine_win.cpp.
References QNativeSocketEnginePrivate::AccessErrorString, QNativeSocketEnginePrivate::AddressInuseErrorString, QNativeSocketEnginePrivate::AddressNotAvailableErrorString, QAbstractSocket::ConnectedState, QAbstractSocket::ConnectingState, QAbstractSocket::ConnectionRefusedError, QNativeSocketEnginePrivate::ConnectionRefusedErrorString, QNativeSocketEnginePrivate::ConnectionTimeOutErrorString, d, error, QNativeSocketEnginePrivate::HostUnreachableErrorString, QNativeSocketEnginePrivate::InvalidSocketErrorString, QAbstractSocket::NetworkError, QNativeSocketEnginePrivate::NetworkUnreachableErrorString, Q_ASSERT, QAbstractSocket::SocketAccessError, QAbstractSocket::UnconnectedState, and QAbstractSocket::UnfinishedSocketOperationError.