FACT++  1.0
int DimBrowser::getNextServer ( char *&  server,
char *&  node 
)

Definition at line 982 of file diccpp.cxx.

References DimInfo::itsData.

Referenced by main().

983 {
984  int ret;
985 
986  server = node = &none;
987  ret = itsData[1]->getToken(currToken);
988  if(!ret) return 0;
989  server = currToken;
990  ret = itsData[1]->getToken(currToken);
991  if(!itsData[1]->cmpToken((char *)"@"))
992  return 0;
993  while(1)
994  {
995  ret = itsData[1]->getToken(currToken);
996  node = currToken;
997  itsData[1]->pushToken();
998  ret = itsData[1]->getToken(currToken);
999  if(itsData[1]->cmpToken((char *)"@"))
1000  {
1001  strcat(server,"@");
1002  strcat(server,node);
1003  }
1004  else
1005  break;
1006  }
1007  if(!itsData[1]->cmpToken((char *)"|"))
1008  itsData[1]->popToken();
1009  return 1;
1010 }
Definition: dns.c:26
char none
Definition: dic.hxx:509
char * currToken
Definition: dic.hxx:508
int getToken(char *&token)
TokenString * itsData[5]
Definition: dic.hxx:506
void popToken()
void pushToken()

+ Here is the caller graph for this function: