Skip to Content.
Sympa Menu

ndt-dev - [ndt-dev] [ndt] r883 committed - Fix issue with incorrect check version compatibility in C client (#109...

Subject: NDT-DEV email list created

List archive

[ndt-dev] [ndt] r883 committed - Fix issue with incorrect check version compatibility in C client (#109...


Chronological Thread 
  • From:
  • To:
  • Subject: [ndt-dev] [ndt] r883 committed - Fix issue with incorrect check version compatibility in C client (#109...
  • Date: Fri, 07 Feb 2014 12:45:44 +0000

Revision: 883
Author:

Date: Fri Feb 7 12:45:22 2014 UTC
Log: Fix issue with incorrect check version compatibility in C client (#109)
http://code.google.com/p/ndt/source/detail?r=883

Modified:
/branches/applet_109/src/web100clt.c

=======================================
--- /branches/applet_109/src/web100clt.c Mon Oct 14 13:20:21 2013 UTC
+++ /branches/applet_109/src/web100clt.c Fri Feb 7 12:45:22 2014 UTC
@@ -766,9 +766,18 @@
exit(4);
}
log_println(5, "Server version: %s", &buff[1]);
- if (strcmp(&buff[1], VERSION)) {
- log_println(1, "WARNING: NDT server has different version number (%s)",
- &buff[1]);
+
+ if (strcmp(&buff[strlen(buff) - 6], "Web10G") == 0 || strcmp(&buff[strlen(buff) - 6], "web100") == 0) {
+ char buffTmp[strlen(buff)+1];
+ strncpy(buffTmp, &buff[1], strlen(&buff[1])-7);
+
+ log_println(5, "Compare versions. Server:%s Client:%s Compare result: %i", buffTmp, VERSION, strcmp(buffTmp, VERSION));
+ if (strcmp(buffTmp, VERSION) != 0) {
+ log_println(1, "WARNING: NDT server has different version number (%s)", &buff[1]);
+ }
+ }
+ else if (strcmp(&buff[1], VERSION)) { //older server did not send type server at the end
+ log_println(1, "WARNING: NDT server has different version number (%s)", &buff[1]);
}

ServerType = "Web100";


  • [ndt-dev] [ndt] r883 committed - Fix issue with incorrect check version compatibility in C client (#109..., ndt, 02/07/2014

Archive powered by MHonArc 2.6.16.

Top of Page