![]() |
NetSim Source Code Help
|
#include "CLIInterface.h"

Go to the source code of this file.
Data Structures | |
| struct | stru_headingInfo |
| struct | stru_fileClientInfo |
| struct | stru_sockClientInfo |
| struct | stru_stringClientInfo |
| struct | stru_clientInfo |
| union | stru_clientInfo::client |
| struct | str_cli_handle |
Macros | |
| #define | NETSIM_ID UINT |
| #define | DEFAULT_PROMPT "NetSim" |
| #define | CMD_CHANGEPROMPT "CHANGEPROMPT" |
| #define | CMD_STOP "STOP" |
| #define | CMD_CONTINUE "CONTINUE" |
| #define | CMD_PAUSE "PAUSE" |
| #define | CMD_PAUSEAT "PAUSEAT" |
| #define | CMD_EXIT "EXIT" |
| #define | CMD_ACLCONFIG "ACLCONFIG" |
| #define | CLIHANDLE ptrCLIHANDLE |
Typedefs | |
| typedef enum enum_clientType | CLIENTTYPE |
| typedef struct stru_headingInfo | HEADINGINFO |
| typedef struct stru_headingInfo * | ptrHEADINGINFO |
| typedef struct stru_fileClientInfo | FILECLIENTINFO |
| typedef struct stru_fileClientInfo * | ptrFILECLIENTINFO |
| typedef struct stru_sockClientInfo | SOCKCLIENTINFO |
| typedef struct stru_sockClientInfo * | ptrSOCKCLIENTINFO |
| typedef struct stru_stringClientInfo | STRINGCLIENTINFO |
| typedef struct stru_stringClientInfo * | ptrSTRINGCLIENTINFO |
| typedef struct stru_clientInfo | CLIENTINFO |
| typedef struct stru_clientInfo * | ptrCLIENTINFO |
| typedef struct str_cli_handle * | ptrCLIHANDLE |
Enumerations | |
| enum | enum_clientType { CLIENTTYPE_NONE , CLIENTTYPE_FILE , CLIENTTYPE_SOCKET , CLIENTTYPE_STRING } |
| enum | HT { HT_NONE , HT_DEVICE , HT_CMD } |
| #define CLIHANDLE ptrCLIHANDLE |
| typedef struct stru_clientInfo CLIENTINFO |
| typedef enum enum_clientType CLIENTTYPE |
| typedef struct stru_fileClientInfo FILECLIENTINFO |
| typedef struct stru_headingInfo HEADINGINFO |
| typedef struct stru_clientInfo * ptrCLIENTINFO |
| typedef struct str_cli_handle* ptrCLIHANDLE |
| typedef struct stru_fileClientInfo * ptrFILECLIENTINFO |
| typedef struct stru_headingInfo* ptrHEADINGINFO |
| typedef struct stru_sockClientInfo * ptrSOCKCLIENTINFO |
| typedef struct stru_stringClientInfo * ptrSTRINGCLIENTINFO |
| typedef struct stru_sockClientInfo SOCKCLIENTINFO |
| typedef struct stru_stringClientInfo STRINGCLIENTINFO |
| enum enum_clientType |
| void * add_new_socket_client | ( | SOCKET | s, |
| char * | name | ||
| ) |
Definition at line 19 of file CLIInterpretor.c.


| void add_to_string | ( | ptrCLIENTINFO | info, |
| char * | sendMsg, | ||
| int | len | ||
| ) |
| void cli_clear_prompt | ( | ptrCLIENTINFO | info | ) |
Definition at line 72 of file SimProcessInterpretor.c.


| void cli_continue_simulation | ( | ptrCLIENTINFO | info | ) |
Definition at line 59 of file SimProcessInterpretor.c.


| void cli_pause_simulation | ( | ptrCLIENTINFO | info | ) |
Definition at line 45 of file SimProcessInterpretor.c.


| void cli_pause_simulation_at | ( | ptrCLIENTINFO | info, |
| double | time | ||
| ) |
Definition at line 29 of file SimProcessInterpretor.c.


| void cli_stop_simulation | ( | ptrCLIENTINFO | info | ) |
Definition at line 18 of file SimProcessInterpretor.c.


| void execute_acl_command | ( | ptrCLIENTINFO | info, |
| ptrCOMMANDARRAY | command, | ||
| int | index, | ||
| NETSIM_ID | d | ||
| ) |
Definition at line 35 of file ACLCommand.c.


| void execute_aclconfig_command | ( | ptrCLIENTINFO | info, |
| ptrCOMMANDARRAY | command, | ||
| int | index, | ||
| NETSIM_ID | d | ||
| ) |
Definition at line 59 of file ACLCommand.c.


| void execute_command | ( | ptrCLIENTINFO | info, |
| ptrCOMMANDARRAY | command, | ||
| NETSIM_ID | d | ||
| ) |
Definition at line 60 of file SimulationCommand.c.


| void execute_ping_command | ( | ptrCLIENTINFO | info, |
| ptrCOMMANDARRAY | command, | ||
| int | index, | ||
| NETSIM_ID | d | ||
| ) |
| void execute_prompt_aclconfig_command | ( | ptrCLIENTINFO | info, |
| ptrCOMMANDARRAY | command, | ||
| int | index, | ||
| NETSIM_ID | d | ||
| ) |
Definition at line 139 of file ACLCommand.c.


| void execute_route_command | ( | ptrCLIENTINFO | info, |
| ptrCOMMANDARRAY | command, | ||
| int | index, | ||
| NETSIM_ID | d | ||
| ) |
Definition at line 150 of file RouteCommand.c.


| int fn_NetSim_CLI_HandleTimerEvent | ( | ) |
Definition at line 203 of file CLIInterpretor.c.


| CLIHANDLE FORM_CLI_HANDLE | ( | ptrCOMMANDARRAY | cmd, |
| ptrCLIENTINFO | info | ||
| ) |
| void free_commandArray | ( | ptrCOMMANDARRAY | c | ) |
| ptrCOMMANDARRAY get_commandArray | ( | char * | text | ) |
| ptrCLIENTINFO get_fileClientInfo | ( | ) |
| bool isCommandAsDeviceName | ( | char * | name | ) |
| void pass_to_SDNModule | ( | ptrCLIENTINFO | info, |
| ptrCOMMANDARRAY | command | ||
| ) |
Definition at line 88 of file SimulationCommand.c.


| void process_command | ( | ptrCLIENTINFO | clientInfo, |
| char * | command, | ||
| int | len | ||
| ) |
Definition at line 56 of file commandProcessor.c.


| void read_file_and_execute | ( | FILE * | fp | ) |
Definition at line 31 of file FileInput.c.


| void send_message | ( | ptrCLIENTINFO | info, |
| char * | msg, | ||
| ... | |||
| ) |
Definition at line 10 of file commandProcessor.c.


| void send_to_socket | ( | ptrCLIENTINFO | info, |
| char * | buf, | ||
| int | len | ||
| ) |
| void set_fileClientInfo | ( | ptrCLIENTINFO | info | ) |
| bool validate_acl_command | ( | ptrCLIENTINFO | info, |
| ptrCOMMANDARRAY | command, | ||
| int | index | ||
| ) |
Definition at line 49 of file ACLCommand.c.


| bool validate_aclconfig_command | ( | ptrCLIENTINFO | info, |
| ptrCOMMANDARRAY | command, | ||
| int | index | ||
| ) |
Definition at line 95 of file ACLCommand.c.


| bool validate_command | ( | ptrCLIENTINFO | info, |
| ptrCOMMANDARRAY | command | ||
| ) |
Definition at line 29 of file SimulationCommand.c.


| bool validate_ping_command | ( | ptrCLIENTINFO | info, |
| ptrCOMMANDARRAY | command, | ||
| int | index | ||
| ) |
| bool validate_route_command | ( | ptrCLIENTINFO | info, |
| ptrCOMMANDARRAY | command, | ||
| int | index | ||
| ) |
Definition at line 35 of file RouteCommand.c.


| void write_to_file | ( | ptrCLIENTINFO | info, |
| char * | msg, | ||
| int | len | ||
| ) |