maintenance
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include <sstp/clientsocketsender.hpp>
|
||||
#include <common/utility.hpp>
|
||||
|
||||
/// @brief This is to provide a definition for SmartPointer
|
||||
ClientSocketSender::ClientSocketSender()
|
||||
@@ -69,6 +70,7 @@ bool ClientSocketSender::sendFile(String &pathFileName)
|
||||
sendPutIndicator(pathFileName, fileLength);
|
||||
Array<char> readBuffer;
|
||||
readBuffer.size(BUFFER_LENGTH);
|
||||
std::cout << "Sending file " << pathFileName << Utility::byteCountToString(fileLength, false) << std::endl;
|
||||
while(true)
|
||||
{
|
||||
size_t bytesRead = readFile.read(&readBuffer[0], readBuffer.size());
|
||||
|
||||
Reference in New Issue
Block a user