FACT++  1.0
int DimBrowser::getServerServices ( const char *  serverName,
int  timeout 
)

Definition at line 909 of file diccpp.cxx.

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

910 {
911  char *str;
912  char *name = new char[(int)strlen(serverName) + 20];
913  strcpy(name,(char *)serverName);
914  strcat(name,(char *)"/SERVICE_LIST");
915  DimCurrentInfo srv(name, timeout, (char *)"\0");
916  delete[] name;
917  str = srv.getString();
918  if(itsData[2])
919  delete itsData[2];
920  itsData[2] = new TokenString(str,(char *)"|\n");
921  currIndex = 2;
922  if(!itsData[2]->getNTokens())
923  return(0);
924  return(itsData[2]->getNTokens((char *)"\n") + 1);
925 }
char str[80]
Definition: test_client.c:7
TokenString * itsData[5]
Definition: dic.hxx:506
static char * serverName
Definition: feeserver.c:183
int currIndex
Definition: dic.hxx:507

+ Here is the call graph for this function: