This commit is contained in:
Albert Vaca Cintora 2023-06-27 13:15:11 +02:00
parent db546e7608
commit beb7e94cbb
3 changed files with 2 additions and 5 deletions

View file

@ -55,7 +55,7 @@ void BluetoothDeviceLink::dataReceived()
// qCDebug(KDECONNECT_CORE) << "BluetoothDeviceLink dataReceived" << packet; // qCDebug(KDECONNECT_CORE) << "BluetoothDeviceLink dataReceived" << packet;
NetworkPacket packet((QString())); NetworkPacket packet;
NetworkPacket::unserialize(serializedPacket, &packet); NetworkPacket::unserialize(serializedPacket, &packet);
if (packet.hasPayloadTransferInfo()) { if (packet.hasPayloadTransferInfo()) {

View file

@ -235,8 +235,6 @@ void LanLinkProvider::udpBroadcastReceived()
NetworkPacket *receivedPacket = new NetworkPacket(); NetworkPacket *receivedPacket = new NetworkPacket();
bool success = NetworkPacket::unserialize(datagram, receivedPacket); bool success = NetworkPacket::unserialize(datagram, receivedPacket);
// qCDebug(KDECONNECT_CORE) << "udp connection from " << receivedPacket->;
// qCDebug(KDECONNECT_CORE) << "Datagram " << datagram.data() ; // qCDebug(KDECONNECT_CORE) << "Datagram " << datagram.data() ;
if (!success) { if (!success) {
@ -314,7 +312,6 @@ void LanLinkProvider::tcpSocketConnected()
return; return;
} }
// TODO Delete me?
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0) #if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
disconnect(socket, QOverload<QAbstractSocket::SocketError>::of(&QAbstractSocket::error), this, &LanLinkProvider::connectError); disconnect(socket, QOverload<QAbstractSocket::SocketError>::of(&QAbstractSocket::error), this, &LanLinkProvider::connectError);
#else #else

View file

@ -16,7 +16,7 @@ LoopbackDeviceLink::LoopbackDeviceLink(LoopbackLinkProvider *parent)
bool LoopbackDeviceLink::sendPacket(NetworkPacket &input) bool LoopbackDeviceLink::sendPacket(NetworkPacket &input)
{ {
NetworkPacket output((QString())); NetworkPacket output;
NetworkPacket::unserialize(input.serialize(), &output); NetworkPacket::unserialize(input.serialize(), &output);
// LoopbackDeviceLink does not need deviceTransferInfo // LoopbackDeviceLink does not need deviceTransferInfo