ndt-dev - [ndt-dev] [ndt] r471 committed - Add client app to java code.
Subject: NDT-DEV email list created
List archive
- From:
- To:
- Subject: [ndt-dev] [ndt] r471 committed - Add client app to java code.
- Date: Fri, 05 Aug 2011 21:11:27 +0000
Revision: 471
Author:
Date: Fri Aug 5 14:11:03 2011
Log: Add client app to java code.
http://code.google.com/p/ndt/source/detail?r=471
Modified:
/branches/client_app/Applet/Tcpbw100.java
=======================================
--- /branches/client_app/Applet/Tcpbw100.java Tue May 10 04:16:40 2011
+++ /branches/client_app/Applet/Tcpbw100.java Fri Aug 5 14:11:03 2011
@@ -106,6 +106,7 @@
private static final String META_BROWSER_OS = "client.browser.name";
private static final String META_CLIENT_KERNEL_VERSION = "client.kernel.version";
private static final String META_CLIENT_VERSION = "client.version";
+ private static final String META_CLIENT_APPLICATION = "client.application";
/* we really should do some clean-up in this java code... maybe later ;) */
private static final byte COMM_FAILURE = 0;
@@ -1423,7 +1424,7 @@
return false;
}
- public boolean test_meta(Protocol ctl) throws IOException
+ public boolean test_meta(Protocol ctl, String application) throws IOException
{
Message msg = new Message();
if ((tests & TEST_META) == TEST_META) {
@@ -1461,6 +1462,7 @@
ctl.send_msg(TEST_MSG, (META_BROWSER_OS + ":" + UserAgentTools.getBrowser(getUserAgent())[2]).getBytes());
ctl.send_msg(TEST_MSG, (META_CLIENT_KERNEL_VERSION + ":" + System.getProperty("os.version")).getBytes());
ctl.send_msg(TEST_MSG, (META_CLIENT_VERSION + ":" + VERSION).getBytes());
+ ctl.send_msg(TEST_MSG, (META_CLIENT_APPLICATION + ":" + application).getBytes());
ctl.send_msg(TEST_MSG, new byte[0]);
@@ -1691,7 +1693,7 @@
break;
case TEST_META:
sPanel.setText(messages.getString("meta"));
- if (test_meta(ctl)) {
+ if (test_meta(ctl, isApplication ? "java" : "applet")) {
results.append(errmsg);
results.append(messages.getString("metaFailed") + "\n");
tests &= (~TEST_META);
- [ndt-dev] [ndt] r471 committed - Add client app to java code., ndt, 08/05/2011
Archive powered by MHonArc 2.6.16.