Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qnativesocketengine_unix.cpp File Reference

(c26994ff1551aa5450383cc51bed9b4d39f973f7)

#include "qnativesocketengine_p_p.h"
#include "private/qnet_unix_p.h"
#include "qdeadlinetimer.h"
#include "qiodevice.h"
#include "qhostaddress.h"
#include "qvarlengtharray.h"
#include "qnetworkinterface.h"
#include "qendian.h"
#include <time.h>
#include <errno.h>
#include <fcntl.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 44 of file qnativesocketengine_unix.cpp.

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

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

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