#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <Ws2tcpip.h>
#include <windows.h>
#include <stdbool.h>
#include <signal.h>
#include "main.h"
#include "CLI.h"
#include "CLIInterface.h"
Go to the source code of this file.
|
| void | init_socket () |
| |
| DWORD WINAPI | command_recv_process (LPVOID lpParam) |
| |
| void * | add_new_socket_client (SOCKET s, char *name) |
| |
| void * | add_new_file_client (char *inputFile) |
| |
| int | fnStopConnection (int sig) |
| |
| bool | init_cliInterpretor (ptrCLIINFO cliInfo) |
| |
| ptrCOMMANDARRAY | CLI_GET_CMDARRAY_FROM_HANDLE (CLIHANDLE handle) |
| |
| CLIHANDLE | FORM_CLI_HANDLE (ptrCOMMANDARRAY cmd, ptrCLIENTINFO info) |
| |
| void | CLI_SEND_MESSAGE (CLIHANDLE handle, char *msg,...) |
| |
| void | CLI_STOP_WAITING (CLIHANDLE handle) |
| |
| char * | CLI_EXECUTE_COMMAND (ptrCOMMANDARRAY cmd, NETSIM_ID d, int *len, bool(*multResp)(void *, char *msg, int len, bool isMore), void *arg, bool *isMore) |
| |
| void | CLI_PRINT_MESSAGE (CLIHANDLE info, char *msg, int len) |
| |
| int | fn_NetSim_CLI_HandleTimerEvent () |
| |
| void | add_to_string (ptrCLIENTINFO info, char *sendMsg, int len) |
| |
◆ _CRT_SECURE_NO_WARNINGS
| #define _CRT_SECURE_NO_WARNINGS |
◆ add_new_file_client()
| void * add_new_file_client |
( |
char * |
inputFile | ) |
|
◆ add_new_socket_client()
| void * add_new_socket_client |
( |
SOCKET |
s, |
|
|
char * |
name |
|
) |
| |
◆ add_to_string()
| void add_to_string |
( |
ptrCLIENTINFO |
info, |
|
|
char * |
sendMsg, |
|
|
int |
len |
|
) |
| |
◆ CLI_EXECUTE_COMMAND()
| char * CLI_EXECUTE_COMMAND |
( |
ptrCOMMANDARRAY |
cmd, |
|
|
NETSIM_ID |
d, |
|
|
int * |
len, |
|
|
bool(*)(void *, char *msg, int len, bool isMore) |
multResp, |
|
|
void * |
arg, |
|
|
bool * |
isMore |
|
) |
| |
◆ CLI_GET_CMDARRAY_FROM_HANDLE()
◆ CLI_PRINT_MESSAGE()
| void CLI_PRINT_MESSAGE |
( |
CLIHANDLE |
info, |
|
|
char * |
msg, |
|
|
int |
len |
|
) |
| |
◆ CLI_SEND_MESSAGE()
| void CLI_SEND_MESSAGE |
( |
CLIHANDLE |
handle, |
|
|
char * |
msg, |
|
|
|
... |
|
) |
| |
◆ CLI_STOP_WAITING()
◆ command_recv_process()
◆ fn_NetSim_CLI_HandleTimerEvent()
| int fn_NetSim_CLI_HandleTimerEvent |
( |
| ) |
|
◆ fnStopConnection()
| int fnStopConnection |
( |
int |
sig | ) |
|
◆ FORM_CLI_HANDLE()
◆ init_cliInterpretor()
◆ init_socket()
◆ firstClient
◆ iswait
◆ lastClient