summaryrefslogtreecommitdiffstats
path: root/src/network/socket/qnativesocketengine_unix.cpp
diff options
context:
space:
mode:
authorBradley T. Hughes <bradley.hughes@nokia.com>2010-07-26 09:41:23 (GMT)
committerBradley T. Hughes <bradley.hughes@nokia.com>2010-09-01 12:24:42 (GMT)
commit0920ee7d257dd644256187dceab629015398933d (patch)
tree32715dc4d66eced0ea0dd0b17acd1a13c1fb9309 /src/network/socket/qnativesocketengine_unix.cpp
parent11cb9c94db6e7c4d494faa071368179e1b4b4b4d (diff)
downloadQt-0920ee7d257dd644256187dceab629015398933d.zip
Qt-0920ee7d257dd644256187dceab629015398933d.tar.gz
Qt-0920ee7d257dd644256187dceab629015398933d.tar.bz2
Rename doMulticast() to multicastMembershipHelper()
This is a simple rename done for clarity.
Diffstat (limited to 'src/network/socket/qnativesocketengine_unix.cpp')
-rw-r--r--src/network/socket/qnativesocketengine_unix.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/network/socket/qnativesocketengine_unix.cpp b/src/network/socket/qnativesocketengine_unix.cpp
index f9061f8..737e35a 100644
--- a/src/network/socket/qnativesocketengine_unix.cpp
+++ b/src/network/socket/qnativesocketengine_unix.cpp
@@ -597,11 +597,11 @@ int QNativeSocketEnginePrivate::nativeAccept()
}
-static bool doMulticast(QNativeSocketEnginePrivate *d,
- int how6,
- int how4,
- const QHostAddress &groupAddress,
- const QNetworkInterface &interface)
+static bool multicastMembershipHelper(QNativeSocketEnginePrivate *d,
+ int how6,
+ int how4,
+ const QHostAddress &groupAddress,
+ const QNetworkInterface &interface)
{
int sockOpt = 0;
void *sockArg;
@@ -668,29 +668,29 @@ static bool doMulticast(QNativeSocketEnginePrivate *d,
bool QNativeSocketEnginePrivate::nativeJoinMulticastGroup(const QHostAddress &groupAddress,
const QNetworkInterface &interface)
{
- return doMulticast(this,
+ return multicastMembershipHelper(this,
#ifndef QT_NO_IPV6
- IPV6_JOIN_GROUP,
+ IPV6_JOIN_GROUP,
#else
- 0,
+ 0,
#endif
- IP_ADD_MEMBERSHIP,
- groupAddress,
- interface);
+ IP_ADD_MEMBERSHIP,
+ groupAddress,
+ interface);
}
bool QNativeSocketEnginePrivate::nativeLeaveMulticastGroup(const QHostAddress &groupAddress,
const QNetworkInterface &interface)
{
- return doMulticast(this,
+ return multicastMembershipHelper(this,
#ifndef QT_NO_IPV6
- IPV6_LEAVE_GROUP,
+ IPV6_LEAVE_GROUP,
#else
- 0,
+ 0,
#endif
- IP_DROP_MEMBERSHIP,
- groupAddress,
- interface);
+ IP_DROP_MEMBERSHIP,
+ groupAddress,
+ interface);
}
qint64 QNativeSocketEnginePrivate::nativeBytesAvailable() const