11 cout << severity <<
" " << msg << endl;
14 while(services[index])
16 cout << services[index] << endl;
32 cout <<
"Received STRVAL : " << getString() << endl;
35 while(services[index])
37 cout << services[index] << endl;
65 printf(
"Missing %d, NBytes = %d\n", missing,
NBytes);
77 int i, index,
size, done = 1;
82 dataptr =
new char[
size];
83 memcpy(dataptr, getData(), size);
105 printf(
"All Services Received\n");
113 int main(
int argc,
char **argv)
118 char *server, *ptr, *ptr1;
120 int type, n, index,
i, ret;
128 if(!strcmp(argv[1],
"-f"))
131 strcpy(findStr,argv[2]);
139 printf(
"Parameters: [-f <search string>]\n");
145 printf(
"Asking %s\n", findStr);
148 cout <<
"found " << n <<
" services" << endl;
155 for(i = 0; i < n; i++)
169 printf(
"Got Service Names\n");
int getServices(const char *serviceName)
TestGetService(char *name)
static char * getServerName()
void dim_print_date_time()
static char ** getServerServices()
int main(int argc, char **argv)
int getNextService(char *&service, char *&format)
void errorHandler(int severity, int code, char *msg)