version 1.9, 2001/06/18 14:54:06 |
version 1.10, 2001/06/27 08:35:13 |
| |
#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/thread.h" | #include "nel/misc/thread.h" |
| #include "nel/misc/command.h" |
| |
#include "nel/net/service.h" | #include "nel/net/service.h" |
#include "nel/net/net_manager.h" | #include "nel/net/net_manager.h" |
| |
string ShortName; /// name of the service in short format ("NS" for example) | string ShortName; /// name of the service in short format ("NS" for example) |
string LongName; /// name of the service in long format ("naming_service") | string LongName; /// name of the service in long format ("naming_service") |
bool Ready; /// true if the service is ready | bool Ready; /// true if the service is ready |
vector<string> Commands; | vector<CSerialCommand> Commands; |
| |
private: | private: |
static uint32 NextId; | static uint32 NextId; |
| |
| |
static void cbLog (CMessage& msgin, TSockId from, CCallbackNetBase &netbase) | static void cbLog (CMessage& msgin, TSockId from, CCallbackNetBase &netbase) |
{ | { |
| CService *s = (CService*) (uint) from->appId(); |
// received an answer for a command, give it to the AS | // received an answer for a command, give it to the AS |
| |
// broadcast the message to the admin service | // broadcast the message to the admin service |
CMessage msgout (CNetManager::getSIDA ("AESAS"), "LOG"); | CMessage msgout (CNetManager::getSIDA ("AESAS"), "XLOG"); |
string log; | string log; |
msgin.serial (log); | msgin.serial (log); |
| msgout.serial (s->Id); |
msgout.serial (log); | msgout.serial (log); |
CNetManager::send ("AESAS", msgout); | CNetManager::send ("AESAS", msgout); |
} | } |