17 #if _RAKNET_SUPPORT_ConsoleServer==1 
   25 #define COMMAND_DELINATOR ' ' 
   26 #define COMMAND_DELINATOR_TOGGLE '"' 
   32 using namespace SLNet;
 
   50     if (transportInterface)
 
   70     if (commandParserInterface==0)
 
   94     if (commandParserInterface==0)
 
  112     char *parameterList[20]; 
 
  113     unsigned numParameters;
 
  128         transport->
Send(newOrLostConnectionId, 
"Connected to remote command console.\r\nType 'help' for help.\r\n");
 
  142         bool commandParsed=
false;
 
  147         if (numParameters==0)
 
  153         if (_stricmp(*parameterList, 
"help")==0 && numParameters<=2)
 
  156             if (numParameters==1)
 
  188                 if (commandParsed==
false)
 
  206                 if (commandParsed==
false)
 
  214         else if (_stricmp(*parameterList, 
"quit")==0 && numParameters==1)
 
  221             bool tryAllParsers=
true;
 
  224             if (numParameters >=2) 
 
  226                 unsigned commandParserIndex=(unsigned)-1;
 
  228                 if (**parameterList>=
'0' && **parameterList<=
'9')
 
  230                     commandParserIndex=atoi(*parameterList); 
 
  231                     commandParserIndex--; 
 
  245                             commandParserIndex=i; 
 
  254                     if (commandParserIndex!=(
unsigned)-1)
 
  258                         if (
commandParserList[commandParserIndex]->GetRegisteredCommand(parameterList[1], &rc))
 
  270             if (failed == 
false && tryAllParsers)
 
  318     if (_prompt && _prompt[0])
 
  320         size_t len = strlen(_prompt);
 
  322         strcpy_s(
prompt,len+1,_prompt);
 
  328 #endif // _RAKNET_SUPPORT_*