summaryrefslogtreecommitdiffstats
path: root/examples/network/torrent/peerwireclient.cpp
diff options
context:
space:
mode:
authorMårten Nordheim <marten.nordheim@qt.io>2020-08-19 16:42:58 +0200
committerMårten Nordheim <marten.nordheim@qt.io>2020-08-24 17:43:56 +0200
commit0011a4510265a13b16f04bce8f16cc9381c22e88 (patch)
treed4e2944c7dc84d2e427d12c56657961df6eb5475 /examples/network/torrent/peerwireclient.cpp
parent081207dc377962537ca7e8fc90a20197f05c30c8 (diff)
QAbstractSocket: Resolve remaining Qt6 TODOs
Change-Id: Id257f0721c1cd5fcbafa9297bae0251a2d68e366 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'examples/network/torrent/peerwireclient.cpp')
-rw-r--r--examples/network/torrent/peerwireclient.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/network/torrent/peerwireclient.cpp b/examples/network/torrent/peerwireclient.cpp
index c30abd0e13..177568d402 100644
--- a/examples/network/torrent/peerwireclient.cpp
+++ b/examples/network/torrent/peerwireclient.cpp
@@ -397,12 +397,11 @@ bool PeerWireClient::canTransferMore() const
|| !outgoingBuffer.isEmpty() || !pendingBlocks.isEmpty();
}
-void PeerWireClient::connectToHost(const QHostAddress &address,
- quint16 port, OpenMode openMode)
-
+void PeerWireClient::connectToHost(const QString &address, quint16 port, OpenMode openMode,
+ NetworkLayerProtocol protocol)
{
setOpenMode(openMode);
- socket.connectToHost(address, port, openMode);
+ socket.connectToHost(address, port, openMode, protocol);
}
void PeerWireClient::diconnectFromHost()