28 int main(
int argc,
char *argv[])
34 char *name, *format, *cltptr, *srvptr, clientName[128];
44 services =
new Service*[nServices];
48 services[i++] =
new Service(name);
51 if((cltptr = strchr(clientName,
'@')))
61 cout <<
"Benchmark from "<< srvptr <<
" to " << cltptr <<
" :" << endl;
62 cout <<
"Server publishes " << nServices <<
" services of " <<
MsgSize <<
" bytes each"<< endl;
63 cout <<
"Result :" << endl;
64 cout <<
"\tMessages/s = " << mps << endl;
65 tpm = 1/(float)mps*1000;
66 cout <<
"\tTime(ms)/message = " << tpm << endl;
67 cout <<
"\tThroughput (Kb/s) = " << mps*
MsgSize/1024 << endl;
int dic_get_id(char *name)
int getServices(const char *serviceName)
static char * getServerName()
int main(int argc, char *argv[])
int getNextService(char *&service, char *&format)