Code cleanup
This commit is contained in:
@@ -12,9 +12,6 @@
|
|||||||
// 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 --
|
// 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
|
// Output will be here. /home/pi/CPP/sstp/build
|
||||||
|
|
||||||
|
|
||||||
void handleServer(Block<String> &commands); // handler for server mode
|
|
||||||
void handleClient(Block<String> &commands); // handler for client mode
|
|
||||||
bool registerSignalHandler(void); // registers a Control-c handler
|
bool registerSignalHandler(void); // registers a Control-c handler
|
||||||
void signalHandler(int signal); // The Control-C handler
|
void signalHandler(int signal); // The Control-C handler
|
||||||
|
|
||||||
@@ -28,7 +25,7 @@ int main(int argc, char **argv)
|
|||||||
{
|
{
|
||||||
int returnCode(0);
|
int returnCode(0);
|
||||||
Profiler profiler;
|
Profiler profiler;
|
||||||
String version = "0.1.0.5"; // major version, minor version, patch, build
|
String version = "1.0.0.6"; // major version, minor version, patch, build
|
||||||
|
|
||||||
std::cout << "sstp version " << version.str() << std::endl;
|
std::cout << "sstp version " << version.str() << std::endl;
|
||||||
if(!registerSignalHandler())
|
if(!registerSignalHandler())
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
#include <common/utility.hpp>
|
#include <common/utility.hpp>
|
||||||
#include <common/stringbuffer.hpp>
|
#include <common/stringbuffer.hpp>
|
||||||
|
|
||||||
|
|
||||||
SocketConnectionReceiver::SocketConnectionReceiver()
|
SocketConnectionReceiver::SocketConnectionReceiver()
|
||||||
: mSocket(-1), mIsRunnable(true)
|
: mSocket(-1), mIsRunnable(true)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -53,7 +53,6 @@ SocketServer::~SocketServer()
|
|||||||
std::cout << "close" << std::endl;
|
std::cout << "close" << std::endl;
|
||||||
close(); // close the listener socket
|
close(); // close the listener socket
|
||||||
std::cout << "~SocketServer, done" << std::endl;
|
std::cout << "~SocketServer, done" << std::endl;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// @brief Join all threads
|
/// @brief Join all threads
|
||||||
|
|||||||
Reference in New Issue
Block a user