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

Definition at line 14 of file test_server_slac.c.

References dic_info_service(), dis_add_service, dis_start_serving, rout(), sprintf(), str, and TIMED.

17 {
18  char aux[80];
19  int n;
20 
21  sscanf(argv[1], "%d", &n);
22  sprintf(aux,"TEST_SLAC/SRV%d",n);
23  sprintf(str[0], aux);
24  dis_add_service(aux, "C", str[0], strlen(str[0])+1, (void *)0, 0);
25  sprintf(aux,"TEST_SLAC/%d",n);
26  dis_start_serving(aux);
27  sprintf(aux,"TEST_SLAC/CLT%d",n);
28  dic_info_service( aux, TIMED, 60, 0, 0, rout, n,
29  "No Link", 8 );
30  while(1)
31  {
32  pause();
33  }
34 }
unsigned dic_info_service(char *serv_name, int req_type, int req_timeout, void *serv_address, int serv_size, void(*usr_routine)(), dim_long tag, void *fill_addr, int fill_size)
Definition: dic.c:601
void rout(int *tag, char *buf, int *size)
#define dis_start_serving
Definition: dis.h:8
#define dis_add_service
Definition: dis.h:12
#define TIMED
Definition: dim_common.h:8
char str[10][80]
sprintf(name1,"NewService%d", i)

+ Here is the call graph for this function: