mirror of
https://github.com/debauchee/barrier.git
synced 2025-07-21 10:27:36 +02:00
Refactored file assemble and send code #4601
This commit is contained in:
parent
1df566d241
commit
a81b88c730
12 changed files with 140 additions and 209 deletions
|
@ -2338,25 +2338,6 @@ Server::KeyboardBroadcastInfo::alloc(State state, const String& screens)
|
|||
return info;
|
||||
}
|
||||
|
||||
void
|
||||
Server::clearReceivedFileData()
|
||||
{
|
||||
m_receivedFileData.clear();
|
||||
}
|
||||
|
||||
void
|
||||
Server::setExpectedFileSize(String data)
|
||||
{
|
||||
std::istringstream iss(data);
|
||||
iss >> m_expectedFileSize;
|
||||
}
|
||||
|
||||
void
|
||||
Server::fileChunkReceived(String data)
|
||||
{
|
||||
m_receivedFileData += data;
|
||||
}
|
||||
|
||||
bool
|
||||
Server::isReceivedFileSizeValid()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue