Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qnativesocketengine_unix.cpp File Reference
#include "qnativesocketengine_p_p.h"
#include "private/qnet_unix_p.h"
#include "qiodevice.h"
#include "qhostaddress.h"
#include "qelapsedtimer.h"
#include "qvarlengtharray.h"
#include "qnetworkinterface.h"
#include "qendian.h"
#include <time.h>
#include <errno.h>
#include <fcntl.h>
#include <net/if.h>
#include <netinet/tcp.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/sctp.h>
+ Include dependency graph for qnativesocketengine_unix.cpp:

Go to the source code of this file.

Functions

static QT_BEGIN_NAMESPACE void qt_socket_getPortAndAddress (const qt_sockaddr *s, quint16 *port, QHostAddress *addr)
 
static void convertToLevelAndOption (QNativeSocketEngine::SocketOption opt, QAbstractSocket::NetworkLayerProtocol socketProtocol, int &level, int &n)
 
static bool multicastMembershipHelper (QNativeSocketEnginePrivate *d, int how6, int how4, const QHostAddress &groupAddress, const QNetworkInterface &interface)
 

Function Documentation

◆ convertToLevelAndOption()

◆ multicastMembershipHelper()

◆ qt_socket_getPortAndAddress()

static QT_BEGIN_NAMESPACE void qt_socket_getPortAndAddress ( const qt_sockaddr s,
quint16 port,
QHostAddress addr 
)
inlinestatic

Definition at line 54 of file qnativesocketengine_unix.cpp.

References AF_INET6, QNetworkInterface::interfaceNameFromIndex(), QHostAddress::setAddress(), and QHostAddress::setScopeId().

Referenced by QNativeSocketEnginePrivate::fetchConnectionParameters(), and QNativeSocketEnginePrivate::nativeReceiveDatagram().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: