Library: Net Responsibility
Package: Core
Header: Request.h
Request is in charge of interaction with the server. It will always send the username, MAC address and version. You may also post more variables.
Member Functions: addMac, downloadBlacklist, downloadConfig, modifiedFilesUpdate, sendImprovementData
Request();
virtual ~Request();
static void addMac(
Options * options,
string password = ""
);
Configure the server to remember the MAC address of this computer. It will then be used for authentification.
static void downloadBlacklist(
Options * options
);
Download a new blacklist
static void downloadConfig(
Options * options,
string password = ""
);
Download a new config file.
static bool modifiedFilesUpdate(
Options * options
);
Update the config file and blacklist if they're modified.
static string sendImprovementData(
Options * options,
string impData
);
Send the improvement data to the server. It's given in impData.