+ void requestAccepted(PeerPtr peer) override;
+ void requestRejected(PeerPtr peer) override;
+
+private slots:
+ void startReceiving();
+ void onDataReceived();
+ void onSocketDisconnected();
+ void onSocketError(QAbstractSocket::SocketError error);
+
+private:
+ void setupConnectionForReceive();
+ bool relayData(const QByteArray &data, bool requireChunkSize);
+ void cleanUp() override;