Code cleanup
This commit is contained in:
@@ -70,7 +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;
|
||||
std::cout << "Sending file " << pathFileName << " " << Utility::byteCountToString(fileLength, false) << std::endl;
|
||||
while(true)
|
||||
{
|
||||
size_t bytesRead = readFile.read(&readBuffer[0], readBuffer.size());
|
||||
|
||||
@@ -11,6 +11,8 @@
|
||||
// To Clean: From the top menu choose "View", "Command Palette", Then choose CMake: Clean OR /usr/bin/cmake --build /home/pi/CPP/sstp/build --config Debug --target clean --
|
||||
// To Build: From the top menu choose "View", "Command Palette", Then choose CMake: Build OR /usr/bin/cmake --build /home/pi/CPP/sstp/build --config Debug --target all --
|
||||
// Output will be here. /home/pi/CPP/sstp/build
|
||||
// On Isonoe to receive we will point to the binaries here /home/pi/CPP/sstp/build
|
||||
// On Adrastea we will point to the binaries here /home/pi/Boneyard/sstp
|
||||
|
||||
bool registerSignalHandler(void); // registers a Control-c handler
|
||||
void signalHandler(int signal); // The Control-C handler
|
||||
@@ -25,7 +27,7 @@ int main(int argc, char **argv)
|
||||
{
|
||||
int returnCode(0);
|
||||
Profiler profiler;
|
||||
String version = "1.0.0.7"; // major version, minor version, patch, build
|
||||
String version = "1.0.0.8"; // major version, minor version, patch, build
|
||||
|
||||
std::cout << "sstp version " << version.str() << std::endl;
|
||||
if(!registerSignalHandler())
|
||||
|
||||
@@ -97,7 +97,7 @@ bool SocketConnectionReceiver::handlePut(Block<String> &commands)
|
||||
|
||||
fileName = commands[1];
|
||||
fileLength = commands[commands.size()-1].toLong();
|
||||
std::cout << "PUT" << " " << fileName << " " << Utility::byteCountToString(fileLength) << std::endl;
|
||||
std::cout << "PUT" << " " << fileName << " " << Utility::byteCountToString(fileLength,false) << std::endl;
|
||||
|
||||
availableDiskSpace=Utility::getAvailableDiskSpace(String("./"));
|
||||
std::cout << Utility::byteCountToString(availableDiskSpace,false) << " available space on disk" << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user