Qt 4.8
|
#include <qnativesocketengine_p.h>
Public Functions | |
bool | checkProxy (const QHostAddress &address) |
bool | createNewSocket (QAbstractSocket::SocketType type, QAbstractSocket::NetworkLayerProtocol protocol) |
Creates and returns a new socket descriptor of type socketType and socketProtocol. More... | |
bool | fetchConnectionParameters () |
Fetches information about both ends of the connection: whatever is available. More... | |
int | nativeAccept () |
bool | nativeBind (const QHostAddress &address, quint16 port) |
qint64 | nativeBytesAvailable () const |
void | nativeClose () |
bool | nativeConnect (const QHostAddress &address, quint16 port) |
bool | nativeHasPendingDatagrams () const |
bool | nativeJoinMulticastGroup (const QHostAddress &groupAddress, const QNetworkInterface &iface) |
bool | nativeLeaveMulticastGroup (const QHostAddress &groupAddress, const QNetworkInterface &iface) |
bool | nativeListen (int backlog) |
QNetworkInterface | nativeMulticastInterface () const |
qint64 | nativePendingDatagramSize () const |
qint64 | nativeRead (char *data, qint64 maxLength) |
qint64 | nativeReceiveDatagram (char *data, qint64 maxLength, QHostAddress *address, quint16 *port) |
int | nativeSelect (int timeout, bool selectForRead) const |
int | nativeSelect (int timeout, bool checkRead, bool checkWrite, bool *selectForRead, bool *selectForWrite) const |
qint64 | nativeSendDatagram (const char *data, qint64 length, const QHostAddress &host, quint16 port) |
bool | nativeSetMulticastInterface (const QNetworkInterface &iface) |
qint64 | nativeWrite (const char *data, qint64 length) |
int | option (QNativeSocketEngine::SocketOption option) const |
Returns the value of the socket option opt. More... | |
QNativeSocketEnginePrivate () | |
Constructs the private class and initializes all data members. More... | |
void | setError (QAbstractSocket::SocketError error, ErrorString errorString) const |
Sets the error and error string if not set already. More... | |
bool | setOption (QNativeSocketEngine::SocketOption option, int value) |
Sets the socket option opt to v. More... | |
~QNativeSocketEnginePrivate () | |
Destructs the private class. More... | |
Public Functions inherited from QAbstractSocketEnginePrivate | |
QAbstractSocketEnginePrivate () | |
Public Functions inherited from QObjectPrivate | |
void | _q_reregisterTimers (void *pointer) |
void | addConnection (int signal, Connection *c) |
void | cleanConnectionLists () |
void | connectNotify (const char *signal) |
void | deleteChildren () |
void | disconnectNotify (const char *signal) |
bool | isSender (const QObject *receiver, const char *signal) const |
bool | isSignalConnected (uint signalIdx) const |
Returns true if the signal with index signal_index from object sender is connected. More... | |
void | moveToThread_helper () |
QObjectPrivate (int version=QObjectPrivateVersion) | |
QObjectList | receiverList (const char *signal) const |
QObjectList | senderList () const |
void | setParent_helper (QObject *) |
void | setThreadData_helper (QThreadData *currentData, QThreadData *targetData) |
int | signalIndex (const char *signalName) const |
Returns the signal index used in the internal connectionLists vector. More... | |
virtual | ~QObjectPrivate () |
Public Functions inherited from QObjectData | |
virtual | ~QObjectData ()=0 |
Additional Inherited Members | |
Static Public Functions inherited from QObjectPrivate | |
static void | clearGuards (QObject *) |
static QObjectPrivate * | get (QObject *o) |
static void | resetCurrentSender (QObject *receiver, Sender *currentSender, Sender *previousSender) |
static Sender * | setCurrentSender (QObject *receiver, Sender *sender) |
static void | signalSignature (const QMetaMethod &signal, QVarLengthArray< char > *result) |
Definition at line 190 of file qnativesocketengine_p.h.
Definition at line 205 of file qnativesocketengine_p.h.
QNativeSocketEnginePrivate::QNativeSocketEnginePrivate | ( | ) |
Constructs the private class and initializes all data members.
On Windows, WSAStartup is called "recursively" for every concurrent QNativeSocketEngine. This is safe, because WSAStartup and WSACleanup are reference counted.
Definition at line 167 of file qnativesocketengine.cpp.
QNativeSocketEnginePrivate::~QNativeSocketEnginePrivate | ( | ) |
Destructs the private class.
Definition at line 181 of file qnativesocketengine.cpp.
bool QNativeSocketEnginePrivate::checkProxy | ( | const QHostAddress & | address | ) |
Definition at line 293 of file qnativesocketengine.cpp.
bool QNativeSocketEnginePrivate::createNewSocket | ( | QAbstractSocket::SocketType | socketType, |
QAbstractSocket::NetworkLayerProtocol | socketProtocol | ||
) |
Creates and returns a new socket descriptor of type socketType and socketProtocol.
Returns -1 on failure.
Definition at line 148 of file qnativesocketengine_unix.cpp.
bool QNativeSocketEnginePrivate::fetchConnectionParameters | ( | ) |
Fetches information about both ends of the connection: whatever is available.
Definition at line 910 of file qnativesocketengine_unix.cpp.
int QNativeSocketEnginePrivate::nativeAccept | ( | ) |
Definition at line 579 of file qnativesocketengine_unix.cpp.
bool QNativeSocketEnginePrivate::nativeBind | ( | const QHostAddress & | address, |
quint16 | port | ||
) |
Definition at line 481 of file qnativesocketengine_unix.cpp.
qint64 QNativeSocketEnginePrivate::nativeBytesAvailable | ( | ) | const |
Definition at line 754 of file qnativesocketengine_unix.cpp.
Referenced by multicastMembershipHelper().
void QNativeSocketEnginePrivate::nativeClose | ( | ) |
Definition at line 981 of file qnativesocketengine_unix.cpp.
Referenced by multicastMembershipHelper().
bool QNativeSocketEnginePrivate::nativeConnect | ( | const QHostAddress & | address, |
quint16 | port | ||
) |
Definition at line 366 of file qnativesocketengine_unix.cpp.
bool QNativeSocketEnginePrivate::nativeHasPendingDatagrams | ( | ) | const |
Definition at line 768 of file qnativesocketengine_unix.cpp.
Referenced by multicastMembershipHelper().
bool QNativeSocketEnginePrivate::nativeJoinMulticastGroup | ( | const QHostAddress & | groupAddress, |
const QNetworkInterface & | iface | ||
) |
Definition at line 663 of file qnativesocketengine_unix.cpp.
Referenced by multicastMembershipHelper().
bool QNativeSocketEnginePrivate::nativeLeaveMulticastGroup | ( | const QHostAddress & | groupAddress, |
const QNetworkInterface & | iface | ||
) |
Definition at line 677 of file qnativesocketengine_unix.cpp.
Referenced by multicastMembershipHelper().
bool QNativeSocketEnginePrivate::nativeListen | ( | int | backlog | ) |
Definition at line 552 of file qnativesocketengine_unix.cpp.
QNetworkInterface QNativeSocketEnginePrivate::nativeMulticastInterface | ( | ) | const |
Definition at line 691 of file qnativesocketengine_unix.cpp.
Referenced by multicastMembershipHelper().
qint64 QNativeSocketEnginePrivate::nativePendingDatagramSize | ( | ) | const |
Definition at line 794 of file qnativesocketengine_unix.cpp.
Referenced by multicastMembershipHelper().
Definition at line 1026 of file qnativesocketengine_unix.cpp.
Referenced by multicastMembershipHelper().
qint64 QNativeSocketEnginePrivate::nativeReceiveDatagram | ( | char * | data, |
qint64 | maxLength, | ||
QHostAddress * | address, | ||
quint16 * | port | ||
) |
Definition at line 821 of file qnativesocketengine_unix.cpp.
Referenced by multicastMembershipHelper().
int QNativeSocketEnginePrivate::nativeSelect | ( | int | timeout, |
bool | selectForRead | ||
) | const |
Definition at line 1072 of file qnativesocketengine_unix.cpp.
Referenced by multicastMembershipHelper().
int QNativeSocketEnginePrivate::nativeSelect | ( | int | timeout, |
bool | checkRead, | ||
bool | checkWrite, | ||
bool * | selectForRead, | ||
bool * | selectForWrite | ||
) | const |
Definition at line 1091 of file qnativesocketengine_unix.cpp.
qint64 QNativeSocketEnginePrivate::nativeSendDatagram | ( | const char * | data, |
qint64 | length, | ||
const QHostAddress & | host, | ||
quint16 | port | ||
) |
Definition at line 852 of file qnativesocketengine_unix.cpp.
Referenced by multicastMembershipHelper().
bool QNativeSocketEnginePrivate::nativeSetMulticastInterface | ( | const QNetworkInterface & | iface | ) |
Definition at line 723 of file qnativesocketengine_unix.cpp.
Referenced by multicastMembershipHelper().
Definition at line 990 of file qnativesocketengine_unix.cpp.
Referenced by multicastMembershipHelper().
int QNativeSocketEnginePrivate::option | ( | QNativeSocketEngine::SocketOption | opt | ) | const |
Returns the value of the socket option opt.
Definition at line 191 of file qnativesocketengine_unix.cpp.
void QNativeSocketEnginePrivate::setError | ( | QAbstractSocket::SocketError | error, |
ErrorString | errorString | ||
) | const |
Sets the error and error string if not set already.
The only interesting error is the first one that occurred, and not the last one.
Definition at line 194 of file qnativesocketengine.cpp.
Referenced by checkProxy(), createNewSocket(), fetchConnectionParameters(), multicastMembershipHelper(), nativeBind(), nativeConnect(), nativeListen(), nativeReceiveDatagram(), nativeSendDatagram(), and nativeWrite().
bool QNativeSocketEnginePrivate::setOption | ( | QNativeSocketEngine::SocketOption | opt, |
int | v | ||
) |
Sets the socket option opt to v.
Definition at line 264 of file qnativesocketengine_unix.cpp.
QSocketNotifier * QNativeSocketEnginePrivate::exceptNotifier |
Definition at line 199 of file qnativesocketengine_p.h.
QSocketNotifier* QNativeSocketEnginePrivate::readNotifier |
Definition at line 199 of file qnativesocketengine_p.h.
int QNativeSocketEnginePrivate::socketDescriptor |
Definition at line 197 of file qnativesocketengine_p.h.
Referenced by createNewSocket(), fetchConnectionParameters(), multicastMembershipHelper(), nativeAccept(), nativeBind(), nativeBytesAvailable(), nativeClose(), nativeConnect(), nativeHasPendingDatagrams(), nativeListen(), nativeMulticastInterface(), nativePendingDatagramSize(), nativeRead(), nativeReceiveDatagram(), nativeSelect(), nativeSendDatagram(), nativeSetMulticastInterface(), nativeWrite(), option(), and setOption().
QWindowsSockInit QNativeSocketEnginePrivate::winSock |
Definition at line 202 of file qnativesocketengine_p.h.
QSocketNotifier * QNativeSocketEnginePrivate::writeNotifier |
Definition at line 199 of file qnativesocketengine_p.h.