version 1.14, 2002/03/19 17:42:48 |
version 1.15, 2002/03/25 09:28:00 |
| |
#define NELNS_LOGS "" | #define NELNS_LOGS "" |
#endif // NELNS_LOGS | #endif // NELNS_LOGS |
| |
| #include "nel/misc/types_nl.h" |
| |
#include <string> | #include <string> |
#include <list> | #include <list> |
| |
#include "nel/net/service.h" | |
#include "nel/misc/debug.h" | #include "nel/misc/debug.h" |
#include "nel/misc/config_file.h" | #include "nel/misc/config_file.h" |
#include "nel/misc/command.h" | #include "nel/misc/command.h" |
| |
| #include "nel/net/service.h" |
#include "nel/net/net_manager.h" | #include "nel/net/net_manager.h" |
| |
using namespace std; | using namespace std; |
| |
// get the script | // get the script |
try | try |
{ | { |
CConfigFile::CVar &script = IService::ConfigFile.getVar("Services"); | CConfigFile::CVar &script = IService::getInstance()->ConfigFile.getVar("Services"); |
| |
// check the position | // check the position |
| |
| |
| |
try | try |
{ | { |
CConfigFile::CVar &script = IService::ConfigFile.getVar("Services"); | CConfigFile::CVar &script = IService::getInstance()->ConfigFile.getVar("Services"); |
| |
for (sint i = 0 ; i < script.size (); i+=2) | for (sint i = 0 ; i < script.size (); i+=2) |
{ | { |
| |
{ | { |
msgin.serial (password); | msgin.serial (password); |
| |
if (password == IService::ConfigFile.getVar("Password").asString()) | if (password == IService::getInstance()->ConfigFile.getVar("Password").asString()) |
{ | { |
// good authentification | // good authentification |
ok = true; | ok = true; |
| |
// AESAS is a client connection to the admin executor | // AESAS is a client connection to the admin executor |
| |
/// Naming Service | /// Naming Service |
NLNET_SERVICE_MAIN (CAdminService, "AS", "admin_service", 49995, ClientCallbackArray, NELNS_CONFIG, NELNS_LOGS); | NLNET_OLD_SERVICE_MAIN (CAdminService, "AS", "admin_service", 49995, ClientCallbackArray, NELNS_CONFIG, NELNS_LOGS); |