FACT++  1.0
int DimBrowser::getServers ( int  timeout)

Definition at line 879 of file diccpp.cxx.

References DimCurrentInfo::getSize(), DimCurrentInfo::getString(), DimInfo::itsData, size, and str.

880 {
881  char *str, *pid_str;
882  int size, totsize;
883  DimCurrentInfo srv((char *)"DIS_DNS/SERVER_LIST", timeout, (char *)"\0");
884  str = srv.getString();
885  size = (int)strlen(str)+1;
886  totsize = srv.getSize();
887 
888  if(itsData[1])
889  delete itsData[1];
890  itsData[1] = new TokenString(str,(char *)"|@\n");
891  currIndex = 1;
892  if(!str[0])
893  return(0);
894  if(totsize > size)
895  {
896  pid_str = str + (int)strlen(str) + 1;
897  if(itsData[4])
898  delete itsData[4];
899  itsData[4] = new TokenString(pid_str,(char *)"|");
900  }
901  return(itsData[1]->getNTokens((char *)"|") +1);
902 }
char str[80]
Definition: test_client.c:7
TokenString * itsData[5]
Definition: dic.hxx:506
int size
Definition: db_dim_server.c:17
int currIndex
Definition: dic.hxx:507

+ Here is the call graph for this function: