FACT++  1.0
void rout ( int *  tag,
char *  buf,
int *  size 
)

Definition at line 45 of file test_client_many.c.

References buff, TT::c, client_str, TT::d, dic_get_dns_node(), dic_get_timestamp(), TT::f, TT::i, my_ctime, TT::s, str, and TT::str.

48 {
49  int conn_id;
50  char server[128];
51 
52  if(*tag == 1100)
53  {
54  printf("Received ONCE_ONLY : %s\n",buff);
55  return;
56  }
57  if(*tag == 1200)
58  {
59  char node[128], str[256];
60  int secs, millis;
61  time_t tsecs;
62 
63  dic_get_dns_node(node);
64  printf("DNS node = %s\n",node);
65  printf("size = %d\n",*size);
66  memcpy(&t, buf, *size);
67  printf("t.i = %d, t.d = %2.2f, t.s = %d, t.c = %c, t.f = %2.2f, t.str = %s\n",
68  t.i,t.d,t.s,t.c,t.f,t.str);
69  dic_get_timestamp(0, &secs, &millis);
70  tsecs = secs;
71  my_ctime(&tsecs, str, 128);
72  str[strlen(str)-1] = '\0';
73  printf("timestamp = %s.%d\n",str,millis);
74 
75  return;
76  }
77  else
78  printf("%s Received %s for Service%03d\n",client_str,buf, *tag);
79 
80 /*
81  if(conn_id = dic_get_server(server))
82  printf("received from %d, %s\n",conn_id, server);
83 */
84 
85 }
#define my_ctime(t, str, size)
Definition: dim_common.h:275
Definition: dns.c:26
char str[20]
Definition: test_client.c:23
float f
Definition: test_client.c:22
char str[80]
char buff[80]
short s
Definition: test_client.c:19
TT t
int dic_get_dns_node(char *node)
Definition: open_dns.c:81
char c
Definition: test_client.c:20
int i
Definition: test_client.c:15
int size
Definition: db_dim_server.c:17
double d
Definition: test_client.c:18
char client_str[80]
int dic_get_timestamp(unsigned serv_id, int *secs, int *milisecs)
Definition: dic.c:984

+ Here is the call graph for this function: