deskflow/src/lib/server/ClientProxy1_5.cpp
2025-06-18 13:17:16 +01:00

60 lines
1.2 KiB
C++

/*
* Deskflow -- mouse and keyboard sharing utility
* SPDX-FileCopyrightText: (C) 2013 - 2016 Symless Ltd.
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
*/
#include "server/ClientProxy1_5.h"
#include "base/Log.h"
#include "deskflow/ProtocolUtil.h"
#include "deskflow/StreamChunker.h"
#include "io/IStream.h"
#include "server/Server.h"
#include <sstream>
//
// ClientProxy1_5
//
ClientProxy1_5::ClientProxy1_5(const std::string &name, deskflow::IStream *stream, Server *server, IEventQueue *events)
: ClientProxy1_4(name, stream, server, events),
m_events(events)
{
// do nothing
}
void ClientProxy1_5::sendDragInfo(uint32_t fileCount, const char *info, size_t size)
{
// do nothing
}
void ClientProxy1_5::fileChunkSending(uint8_t mark, char *data, size_t dataSize)
{
// do nothing
}
bool ClientProxy1_5::parseMessage(const uint8_t *code)
{
if (memcmp(code, kMsgDFileTransfer, 4) == 0) {
fileChunkReceived();
} else if (memcmp(code, kMsgDDragInfo, 4) == 0) {
dragInfoReceived();
} else {
return ClientProxy1_4::parseMessage(code);
}
return true;
}
void ClientProxy1_5::fileChunkReceived() const
{
// do nothing
}
void ClientProxy1_5::dragInfoReceived() const
{
// do nothing
}