|
|
|
|
|
|
|
|
#include <exception>
|
|
|
#include <exception>
|
|
|
#include <stdexcept>
|
|
|
#include <stdexcept>
|
|
|
#include "unistd.h"
|
|
|
#include "unistd.h"
|
|
|
#include "timing.hpp"
|
|
|
|
|
|
#include "threading.hpp"
|
|
|
|
|
|
#include "networking.hpp"
|
|
|
|
|
|
#include "SNFMulti.hpp"
|
|
|
|
|
|
#include "snf_xci.hpp"
|
|
|
|
|
|
#include "snf_sync.hpp"
|
|
|
|
|
|
|
|
|
#include "../CodeDweller/timing.hpp"
|
|
|
|
|
|
#include "../CodeDweller/threading.hpp"
|
|
|
|
|
|
#include "../CodeDweller/networking.hpp"
|
|
|
|
|
|
#include "../SNFMulti/SNFMulti.hpp"
|
|
|
|
|
|
#include "../SNFMulti/snf_xci.hpp"
|
|
|
|
|
|
#include "../SNFMulti/snf_sync.hpp"
|
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
|
//#include "config.h"
|
|
|
|
|
|
|
|
|
// temporary - proving base64codec
|
|
|
// temporary - proving base64codec
|
|
|
|
|
|
|
|
|
#include "base64codec.hpp"
|
|
|
|
|
|
|
|
|
#include "../CodeDweller/base64codec.hpp"
|
|
|
|
|
|
|
|
|
//#include "../nvwa-0.6/nvwa/debug_new.h"
|
|
|
//#include "../nvwa-0.6/nvwa/debug_new.h"
|
|
|
using namespace std; // Introduce standard namespace.
|
|
|
using namespace std; // Introduce standard namespace.
|
|
|
|
|
|
|
|
|
const char* SERVER_VERSION_INFO = "SNF Server Version " PACKAGE_VERSION " Build: " __DATE__ " " __TIME__;
|
|
|
|
|
|
|
|
|
const char* SERVER_VERSION_INFO = "SNF Server Version 3.0.2 Build: " __DATE__ " " __TIME__;
|
|
|
|
|
|
|
|
|
static const string XCIShutdownResponse =
|
|
|
static const string XCIShutdownResponse =
|
|
|
"<snf><xci><server><response message=\'shutdown in progress\' code=\'0\'/></server></xci></snf>\n";
|
|
|
"<snf><xci><server><response message=\'shutdown in progress\' code=\'0\'/></server></xci></snf>\n";
|