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

Definition at line 35 of file db_dim_client.c.

References counter, dic_info_service(), dic_release_service(), MONITORED, no_link, serv_received(), and service_id.

36 {
37 
38  //service_id = dic_info_service("testBuffer",MONITORED,0,0,0,serv_received,0,&no_link,4);
39 // printf("registering to service\n");
40 // counter = 0;
41 // service_id = dic_info_service("testBuffer",MONITORED,0,0,0,serv_received,0,&no_link,4);
42  while(1)
43  {
44  printf("registering to service\n");
45  counter = 0;
46  service_id = dic_info_service("testBuffer",MONITORED,0,0,0,serv_received,0,&no_link,4);
47  sleep(1);
48  printf("releasing service\n");
50  printf("released service\n");
51  sleep(1);
52  //sprintf(message, "%s", dic_get_error_services());
53  }
54 }
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
unsigned service_id
Definition: db_dim_client.c:22
#define MONITORED
Definition: dim_common.h:9
int counter
Definition: db_dim_client.c:19
void dic_release_service(unsigned service_id)
Definition: dic.c:1025
serv_received(int *tag, char *address, int *size)
Definition: db_dim_client.c:24
int no_link
Definition: db_dim_client.c:17

+ Here is the call graph for this function: