Skip to Content.
Sympa Menu

ndt-dev - [ndt-dev] [ndt] r1142 committed - fixed applet

Subject: NDT-DEV email list created

List archive

[ndt-dev] [ndt] r1142 committed - fixed applet


Chronological Thread 
  • From:
  • To:
  • Subject: [ndt-dev] [ndt] r1142 committed - fixed applet
  • Date: Thu, 06 Nov 2014 12:36:29 +0000

Revision: 1142
Author:

Date: Thu Nov 6 12:36:08 2014 UTC
Log: fixed applet
https://code.google.com/p/ndt/source/detail?r=1142

Modified:
/branches/MultiplePorts/Applet/src/edu/internet2/ndt/Tcpbw100.java

=======================================
--- /branches/MultiplePorts/Applet/src/edu/internet2/ndt/Tcpbw100.java Wed Nov 5 13:15:12 2014 UTC
+++ /branches/MultiplePorts/Applet/src/edu/internet2/ndt/Tcpbw100.java Thu Nov 6 12:36:08 2014 UTC
@@ -1782,7 +1782,13 @@
return true;
}
// Server sends port number to bind to in the
TEST_PREPARE
- String[] sMsgBody = new String(msg.getBody()).split("
");
+ String[] sMsgBody;
+ if (jsonSupport) {
+ sMsgBody = JSONUtils.getSingleMessage(new String(msg.getBody())).split(" ");
+ } else {
+ sMsgBody = new String(msg.getBody()).split("
");
+ }
+
int iC2sport = Integer.parseInt(sMsgBody[0]);

if (_bSupportExtTests) {
@@ -1958,7 +1964,7 @@
tmpstr3 = new String(msg.getBody());
}

- sMsgBody = new String(msg.getBody()).split(" ");
+ sMsgBody = tmpstr3.split(" ");
_dSc2sspd = Double.parseDouble(sMsgBody[0]) /
NDTConstants.KILO;
ThroughputSnapshot lastThroughputSnapshot = null;

@@ -2065,7 +2071,13 @@
return true;
}
// get port to bind to for S2C tests
- String[] sMsgBody = new String(msg.getBody()).split("
");
+ String[] sMsgBody;
+ if (jsonSupport) {
+ sMsgBody = JSONUtils.getSingleMessage(new String(msg.getBody())).split(" ");
+ } else {
+ sMsgBody = new String(msg.getBody()).split("
");
+ }
+
int iS2cport = Integer.parseInt(sMsgBody[0]);

if (_bSupportExtTests) {


  • [ndt-dev] [ndt] r1142 committed - fixed applet, ndt, 11/06/2014

Archive powered by MHonArc 2.6.16.

Top of Page