Fix 5.11 API review findings in QtNetwork
Rename QNetworkInterface::maxTransmissionUnit() to QNetworkInterface::maximumTransmissionUnit() Change-Id: I24a80b1317363e8d5da5f251ec908da9a51a6b0a Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
1e27219968
commit
88a48192aa
@ -706,7 +706,7 @@ int QNetworkInterface::index() const
|
||||
|
||||
\sa QUdpSocket
|
||||
*/
|
||||
int QNetworkInterface::maxTransmissionUnit() const
|
||||
int QNetworkInterface::maximumTransmissionUnit() const
|
||||
{
|
||||
return d ? d->mtu : 0;
|
||||
}
|
||||
|
@ -153,7 +153,7 @@ public:
|
||||
bool isValid() const;
|
||||
|
||||
int index() const;
|
||||
int maxTransmissionUnit() const;
|
||||
int maximumTransmissionUnit() const;
|
||||
QString name() const;
|
||||
QString humanReadableName() const;
|
||||
InterfaceFlags flags() const;
|
||||
|
@ -143,7 +143,7 @@ void tst_QNetworkInterface::dump()
|
||||
qDebug() << " flags: " << qPrintable(flags);
|
||||
qDebug() << " type: " << i.type();
|
||||
qDebug() << " hw address:" << qPrintable(i.hardwareAddress());
|
||||
qDebug() << " MTU: " << i.maxTransmissionUnit();
|
||||
qDebug() << " MTU: " << i.maximumTransmissionUnit();
|
||||
|
||||
int count = 0;
|
||||
foreach (const QNetworkAddressEntry &e, i.addressEntries()) {
|
||||
@ -187,7 +187,7 @@ void tst_QNetworkInterface::consistencyCheck()
|
||||
if (iface.index())
|
||||
interfaceIndexes << iface.index();
|
||||
|
||||
QVERIFY(iface.maxTransmissionUnit() >= 0);
|
||||
QVERIFY(iface.maximumTransmissionUnit() >= 0);
|
||||
|
||||
const QList<QNetworkAddressEntry> addresses = iface.addressEntries();
|
||||
for (auto entry : addresses) {
|
||||
@ -275,7 +275,7 @@ void tst_QNetworkInterface::localAddress()
|
||||
<< "pmtu" << pmtu;
|
||||
|
||||
// check that the Path MTU is less than or equal the interface's MTU
|
||||
QVERIFY(pmtu <= outgoingIface->maxTransmissionUnit());
|
||||
QVERIFY(pmtu <= outgoingIface->maximumTransmissionUnit());
|
||||
}
|
||||
|
||||
void tst_QNetworkInterface::interfaceFromXXX_data()
|
||||
|
Loading…
Reference in New Issue
Block a user