MCPcopy Create free account
hub / github.com/Windscribe/Desktop-App / detectAppropriatePacketSizeImpl

Method detectAppropriatePacketSizeImpl

src/client/engine/engine/engine.cpp:1832–1845  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1830}
1831
1832void Engine::detectAppropriatePacketSizeImpl()
1833{
1834 if (networkDetectionManager_->isOnline())
1835 {
1836 qCDebug(LOG_PACKET_SIZE) << "Detecting appropriate packet size";
1837 runningPacketDetection_ = true;
1838 emit packetSizeDetectionStateChanged(true, false);
1839 packetSizeController_->detectAppropriatePacketSize(HardcodedSettings::instance().windscribeHost());
1840 }
1841 else
1842 {
1843 qCWarning(LOG_PACKET_SIZE) << "No internet, cannot detect appropriate packet size. Using: " << QString::number(packetSize_.mtu);
1844 }
1845}
1846
1847void Engine::updateWindowInfoImpl(qint32 windowCenterX, qint32 windowCenterY)
1848{

Callers

nothing calls this directly

Calls 3

windscribeHostMethod · 0.80
isOnlineMethod · 0.45

Tested by

no test coverage detected