FACT++  1.0
int main ( void  )

Definition at line 50 of file test_client.cxx.

References DimClient::addErrorHandler(), DimInfo::getInt(), DimBrowser::getNextServer(), DimBrowser::getNextServerClient(), DimBrowser::getNextService(), DimBrowser::getServerClients(), DimBrowser::getServers(), DimBrowser::getServices(), DimClient::inCallback(), DimClient::sendCommand(), and type.

51 {
52 
53  ErrorHandler errHandler;
54  StrService servstr;
55  char *server, *ptr, *ptr1;
56  DimBrowser br;
57  int type, n, pid;
58 
59 // DimClient::addErrorHandler(errHandler);
60 
61  n = br.getServices("*");
62  cout << "found " << n << " services" << endl;
63 
64  while((type = br.getNextService(ptr, ptr1))!= 0)
65  {
66  cout << "type = " << type << " - " << ptr << " " << ptr1 << endl;
67  }
68 
69  br.getServers();
70  while(br.getNextServer(server, ptr1, pid))
71  {
72  cout << server << " @ " << ptr1 << ", pid = " << pid << endl;
73  }
74 
75  br.getServerClients("DIS_DNS");
76  while(br.getNextServerClient(ptr, ptr1))
77  {
78  cout << ptr << " @ " << ptr1 << endl;
79  }
80 
81  DimInfo servint("TEST/INTVAL",-1);
82 
83  while(1)
84  {
85  sleep(10);
86 
87  cout << "Current INTVAL : " << servint.getInt() << endl;
88  DimClient::sendCommand("TEST/CMND","UPDATE_STRVAL");
89  int inCallback = DimClient::inCallback();
90  cout << "main: In callback "<< inCallback << endl;
91 
93  }
94  return 0;
95 }
int getServerClients(const char *serverName)
Definition: diccpp.cxx:927
static int sendCommand(const char *name, int data)
Definition: diccpp.cxx:1098
int getNextServerClient(char *&client, char *&node)
Definition: diccpp.cxx:1067
int getServices(const char *serviceName)
Definition: diccpp.cxx:849
Definition: dic.hxx:31
static int inCallback()
Definition: diccpp.cxx:1358
int type
void addErrorHandler()
Definition: diccpp.cxx:1272
int getServers()
Definition: diccpp.cxx:874
int getNextServer(char *&server, char *&node)
Definition: diccpp.cxx:982
int getNextService(char *&service, char *&format)
Definition: diccpp.cxx:948

+ Here is the call graph for this function: