FACT++  1.0
main ( int  argc,
char **  argv 
)

Definition at line 23 of file demo_server.c.

References dev_data, dis_add_cmnd, dis_add_service, dis_start_serving, do_cmnd(), serv_id, and sprintf().

26 {
27  char aux[80];
28 
29  dev_data = 0;
30  sprintf(aux,"DEVICE/%s/DATA",argv[1]);
31  serv_id = dis_add_service(aux, "I", &dev_data, sizeof(int), 0, 0);
32 
33  sprintf(aux,"DEVICE/%s/CMD",argv[1]);
34  dis_add_cmnd(aux, "C", do_cmnd, 0);
35 
36  dis_start_serving( argv[1] );
37  while(1)
38  pause();
39 }
void do_cmnd(int *tag, char *cmnd, int *size)
Definition: demo_server.c:7
int dev_data
Definition: demo_server.c:4
#define dis_add_cmnd
Definition: dis.h:13
#define dis_start_serving
Definition: dis.h:8
int serv_id
Definition: demo_server.c:5
#define dis_add_service
Definition: dis.h:12
sprintf(name1,"NewService%d", i)

+ Here is the call graph for this function: