FACT++  1.0
void BridgeService::infoHandler ( )
inlineprivatevirtual

Reimplemented from DimInfo.

Definition at line 22 of file dimbridge.cxx.

References bridge_name, data, dim_print_date_time(), DimInfo::getData(), DimClient::getServerName(), DimInfo::getSize(), no_link, DimService::setData(), DimServer::start(), and DimService::updateService().

22  {
23  char *server;
26 
27 // Sometimes gets a packet from DIS_DNS not understood why!!!"
28  server = DimClient::getServerName();
29  if(strstr(server,"DIS_DNS") != 0)
30  {
32 cout << "received from " << server << " size = " << srv_size << endl;
33  if(strstr(srv_name,"DIS_DNS") == 0)
34  return;
35  }
36  srv_data = data;
37  if(*(int *)srv_data == no_link)
38  {
39  if(srv)
40  {
41  delete(srv);
42  srv = 0;
43  }
44  declared = 0;
45 // cout << "Disconnecting bridge for: " << srv_name << endl;
46  }
47  else if(!declared)
48  {
49 // DimServer::setDnsNode(to_node);
51  if(copyFlag)
54  declared = 1;
55 // DimClient::setDnsNode(from_node);
56  }
57  else
58  {
59  if(srv)
60  {
61  if(copyFlag)
62  {
64  srv->updateService();
65  }
66  else
67  {
69  }
70  }
71  }
72  }
int getSize()
Definition: dic.hxx:100
static int no_link
Definition: dimbridge.cxx:7
DimService * srv
Definition: dimbridge.cxx:15
int updateService()
Definition: discpp.cxx:1016
void * getData()
Definition: diccpp.cxx:213
static char bridge_name[64]
Definition: dimbridge.cxx:8
void setData(void *data, int size)
Definition: discpp.cxx:1270
static char * getServerName()
Definition: diccpp.cxx:1296
void * srv_data
Definition: dimbridge.cxx:16
static void start()
Definition: discpp.cxx:512
void dim_print_date_time()
Definition: utilities.c:134
char srv_name[256]
Definition: dimbridge.cxx:12
char srv_format[256]
Definition: dimbridge.cxx:13

+ Here is the call graph for this function: