FACT++  1.0
int DimBrowser::getServices ( const char *  serviceName,
int  timeout 
)

Definition at line 854 of file diccpp.cxx.

References DimInfo::itsData, and str.

855 {
856  char *str;
857 
858 // DimRpcInfo rpc((char *)"DIS_DNS/SERVICE_INFO",(char *)"\0");
859 // rpc.setData((char *)serviceName);
860 // str = rpc.getString();
861  if(!browserRpc)
862  browserRpc = new DimRpcInfo((char *)"DIS_DNS/SERVICE_INFO",timeout,(char *)"\0");
863  browserRpc->setData((char *)serviceName);
864  str = browserRpc->getString();
865  if(itsData[0])
866  delete itsData[0];
867  itsData[0] = new TokenString(str,(char *)"|\n");
868  currIndex = 0;
869  if(!itsData[0]->getNTokens())
870  return(0);
871  return( itsData[0]->getNTokens((char *)"\n") + 1);
872 }
DimRpcInfo * browserRpc
Definition: dic.hxx:510
char str[80]
Definition: test_client.c:7
char * getString()
Definition: dic.hxx:410
TokenString * itsData[5]
Definition: dic.hxx:506
void setData(void *data, int size)
Definition: dic.hxx:413
int currIndex
Definition: dic.hxx:507