ndt-dev - [ndt-dev] [ndt] r468 committed - Add client app to java code.
Subject: NDT-DEV email list created
List archive
- From:
- To:
- Subject: [ndt-dev] [ndt] r468 committed - Add client app to java code.
- Date: Fri, 05 Aug 2011 20:42:08 +0000
Revision: 468
Author:
Date: Fri Aug 5 13:41:43 2011
Log: Add client app to java code.
http://code.google.com/p/ndt/source/detail?r=468
Modified:
/branches/client_app/src/test_meta_srv.c
/trunk/Applet/Tcpbw100.java
=======================================
--- /branches/client_app/src/test_meta_srv.c Fri Aug 5 11:25:21 2011
+++ /branches/client_app/src/test_meta_srv.c Fri Aug 5 13:41:43 2011
@@ -89,7 +89,7 @@
}
*value = 0;
value++;
-
+
if (strcmp(META_CLIENT_OS, buff) == 0) {
snprintf(meta.client_os, sizeof(meta.client_os), "%s", value);
/*continue;*/
@@ -101,7 +101,6 @@
}
if (strcmp(META_CLIENT_APPLICATION, buff) == 0) {
- log_println(0, "Client application field received.");
snprintf(meta.client_application, sizeof(meta.client_application), "%s", value);
/*continue;*/
}
=======================================
--- /trunk/Applet/Tcpbw100.java Tue May 10 04:16:40 2011
+++ /trunk/Applet/Tcpbw100.java Fri Aug 5 13:41:43 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] r468 committed - Add client app to java code., ndt, 08/05/2011
Archive powered by MHonArc 2.6.16.