FACT++  1.0
void do_cmnd ( int *  tag,
char *  cmnd,
int *  size 
)

Definition at line 7 of file demo_server.c.

References dev_data, dis_update_service, and serv_id.

Referenced by main().

10 {
11  printf("Got Command: %s\n",cmnd);
12  if(!strcmp(cmnd,"RESET"))
13  dev_data = 0;
14  if(!strcmp(cmnd,"CONFIGURE"))
15  dev_data = 1;
16  if(!strcmp(cmnd,"START"))
17  dev_data = 2;
18  if(!strcmp(cmnd,"STOP"))
19  dev_data = 1;
21 }
int dev_data
Definition: demo_server.c:4
#define dis_update_service
Definition: dis.h:18
int serv_id
Definition: demo_server.c:5

+ Here is the caller graph for this function: