monitor_service.diff
| code/ryzom/server/src/monitor_service/service_main.cpp 2010-05-17 14:35:49.980574411 -0500 | ||
|---|---|---|
| 410 | 410 |
} |
| 411 | 411 |
|
| 412 | 412 |
// *************************************************************************** |
| 413 |
void commandAdmin(CMessage &msgin, TSockId from, CCallbackNetBase &netbase) |
|
| 414 |
{
|
|
| 415 |
CSString entityID, command, args; |
|
| 416 |
msgin.serial (command); |
|
| 417 |
//msgin.serial (entityID); |
|
| 418 |
//msgin.serial (args); |
|
| 419 |
|
|
| 420 |
nlinfo ("Got message: %s",command.c_str());
|
|
| 421 |
|
|
| 422 |
CMessage msgout; |
|
| 423 |
msgout.setType("EXEC_COMMAND");
|
|
| 424 |
//CSString out = command + " " + entityID + " " + args; |
|
| 425 |
msgout.serial(command); |
|
| 426 |
CUnifiedNetwork::getInstance()->send("EGS", msgout);
|
|
| 427 |
} |
|
| 428 |
|
|
| 429 |
// *************************************************************************** |
|
| 413 | 430 |
|
| 414 | 431 |
void cbReceiveString( CMessage& msgin, const string &serviceName, TServiceId serviceId ) |
| 415 | 432 |
{
|
| ... | ... | |
| 437 | 454 |
{ "WINDOW", clientSetWindow },
|
| 438 | 455 |
{ "BANDW", clientSetBandwidth },
|
| 439 | 456 |
{ "AUTHENT", clientAuthentication },
|
| 457 |
{ "EXEC_COMMAND", commandAdmin }
|
|
| 440 | 458 |
}; |
| 441 | 459 |
|
| 442 | 460 |
TUnifiedCallbackItem CallbackArray5[] = |