5#pragma comment(lib,"NetworkStack.lib")
10#define DEFAULT_PROMPT "NetSim"
12#define CMD_CHANGEPROMPT "CHANGEPROMPT"
13#define CMD_STOP "STOP"
14#define CMD_CONTINUE "CONTINUE"
15#define CMD_PAUSE "PAUSE"
16#define CMD_PAUSEAT "PAUSEAT"
17#define CMD_EXIT "EXIT"
18#define CMD_ACLCONFIG "ACLCONFIG"
95#define CLIHANDLE ptrCLIHANDLE
void execute_acl_command(ptrCLIENTINFO info, ptrCOMMANDARRAY command, int index, NETSIM_ID d)
void cli_continue_simulation(ptrCLIENTINFO info)
void cli_pause_simulation_at(ptrCLIENTINFO info, double time)
struct stru_sockClientInfo * ptrSOCKCLIENTINFO
int fn_NetSim_CLI_HandleTimerEvent()
ptrCOMMANDARRAY get_commandArray(char *text)
void write_to_file(ptrCLIENTINFO info, char *msg, int len)
void execute_ping_command(ptrCLIENTINFO info, ptrCOMMANDARRAY command, int index, NETSIM_ID d)
void read_file_and_execute(FILE *fp)
void set_fileClientInfo(ptrCLIENTINFO info)
struct stru_headingInfo HEADINGINFO
bool validate_aclconfig_command(ptrCLIENTINFO info, ptrCOMMANDARRAY command, int index)
bool validate_ping_command(ptrCLIENTINFO info, ptrCOMMANDARRAY command, int index)
CLIHANDLE FORM_CLI_HANDLE(ptrCOMMANDARRAY cmd, ptrCLIENTINFO info)
void cli_clear_prompt(ptrCLIENTINFO info)
ptrCLIENTINFO get_fileClientInfo()
void execute_command(ptrCLIENTINFO info, ptrCOMMANDARRAY command, NETSIM_ID d)
struct stru_headingInfo * ptrHEADINGINFO
struct stru_fileClientInfo FILECLIENTINFO
void cli_pause_simulation(ptrCLIENTINFO info)
struct stru_fileClientInfo * ptrFILECLIENTINFO
struct stru_sockClientInfo SOCKCLIENTINFO
bool validate_route_command(ptrCLIENTINFO info, ptrCOMMANDARRAY command, int index)
bool isCommandAsDeviceName(char *name)
struct str_cli_handle * ptrCLIHANDLE
void process_command(ptrCLIENTINFO clientInfo, char *command, int len)
struct stru_clientInfo CLIENTINFO
struct stru_clientInfo * ptrCLIENTINFO
void execute_route_command(ptrCLIENTINFO info, ptrCOMMANDARRAY command, int index, NETSIM_ID d)
void cli_stop_simulation(ptrCLIENTINFO info)
bool validate_command(ptrCLIENTINFO info, ptrCOMMANDARRAY command)
void send_message(ptrCLIENTINFO info, char *msg,...)
void send_to_socket(ptrCLIENTINFO info, char *buf, int len)
void free_commandArray(ptrCOMMANDARRAY c)
void execute_prompt_aclconfig_command(ptrCLIENTINFO info, ptrCOMMANDARRAY command, int index, NETSIM_ID d)
struct stru_stringClientInfo * ptrSTRINGCLIENTINFO
void * add_new_socket_client(SOCKET s, char *name)
enum enum_clientType CLIENTTYPE
void pass_to_SDNModule(ptrCLIENTINFO info, ptrCOMMANDARRAY command)
void execute_aclconfig_command(ptrCLIENTINFO info, ptrCOMMANDARRAY command, int index, NETSIM_ID d)
void add_to_string(ptrCLIENTINFO info, char *sendMsg, int len)
struct stru_stringClientInfo STRINGCLIENTINFO
bool validate_acl_command(ptrCLIENTINFO info, ptrCOMMANDARRAY command, int index)
union stru_clientInfo::client CLIENT
bool(* multResp)(void *, char *, int, bool)
struct stru_clientInfo * next
SOCKCLIENTINFO sockClient
STRINGCLIENTINFO stringClient
FILECLIENTINFO fileClient