#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include <neuro/stringtable.h>
#include <neuro/cmdhandler.h>
#include "nsutil.h"
#include "nsnet.h"
#include "nsd.h"
Go to the source code of this file.
Data Structures | |
struct | ClientState |
struct | CommandEntry |
struct | CommandHandler |
Defines | |
#define | MAXTOKENS 256 |
Functions | |
CommandHandler * | newCommandHandler (void) |
void | freeValues (struct StringTable *st, const char *key, void *val, void *udata) |
void | freeCS (struct StringTable *st, const char *key, void *val, void *udata) |
void | freeCommandHandler (struct CommandHandler *ch) |
void | newClientStarted (struct CommandHandler *ch, int cliIndex) |
void | enregisterCommand (struct CommandHandler *ch, const char *cmd, void(*func)(struct CommandHandler *ch, int)) |
void | handleLine (struct CommandHandler *ch, const char *line, int cliIndex) |
int | fetchIntParameters (struct CommandHandler *ch, int *vals, int num) |
const char * | fetchCommandName (struct CommandHandler *ch) |
const char * | fetchStringParameter (struct CommandHandler *ch, int which) |
|
Definition at line 10 of file cmdhandler.c. |
|
Definition at line 77 of file cmdhandler.c. References putString(). |
|
Definition at line 200 of file cmdhandler.c. References CommandHandler::curClient, and ClientState::tokens. |
|
Definition at line 192 of file cmdhandler.c. References CommandHandler::curClient, and ClientState::tokens. Referenced by cmdDataFrame(), cmdGetHeader(), cmdgo(), cmdnogo(), cmdUnwatch(), and cmdWatch(). |
|
Definition at line 205 of file cmdhandler.c. References CommandHandler::curClient, and ClientState::tokens. |
|
Definition at line 50 of file cmdhandler.c. References allStrings(), CommandHandler::clients, CommandHandler::cmds, freeCS(), freeStringTable(), and freeValues(). |
|
Definition at line 41 of file cmdhandler.c. Referenced by freeCommandHandler(). |
|
Definition at line 36 of file cmdhandler.c. Referenced by freeCommandHandler(). |
|
Definition at line 168 of file cmdhandler.c. References CommandHandler::clients, CommandHandler::cmds, CommandHandler::curClient, findString(), ClientState::tokenCount, and ClientState::tokens. Referenced by main(). |
|
Definition at line 69 of file cmdhandler.c. References CommandHandler::clients, and putString(). Referenced by makeNewClient(). |
|
Definition at line 27 of file cmdhandler.c. References newStringTable(). Referenced by main(). |