ndt-dev - [ndt-dev] [ndt] r467 committed - Add client app metadata changes to the correct branch.
Subject: NDT-DEV email list created
List archive
[ndt-dev] [ndt] r467 committed - Add client app metadata changes to the correct branch.
Chronological Thread
- From:
- To:
- Subject: [ndt-dev] [ndt] r467 committed - Add client app metadata changes to the correct branch.
- Date: Fri, 05 Aug 2011 18:25:57 +0000
Revision: 467
Author:
Date: Fri Aug 5 11:25:21 2011
Log: Add client app metadata changes to the correct branch.
http://code.google.com/p/ndt/source/detail?r=467
Modified:
/branches/client_app/src/logging.c
/branches/client_app/src/logging.h
/branches/client_app/src/test_meta.h
/branches/client_app/src/test_meta_clt.c
/branches/client_app/src/test_meta_srv.c
=======================================
--- /branches/client_app/src/logging.c Fri Aug 5 10:26:23 2011
+++ /branches/client_app/src/logging.c Fri Aug 5 11:25:21 2011
@@ -549,6 +549,7 @@
fprintf(fp, "client hostname: %s\n", meta.client_name);
fprintf(fp, "client OS name: %s\n", meta.client_os);
fprintf(fp, "client_browser name: %s\n", meta.client_browser);
+ fprintf(fp, "client_application name: %s\n", meta.client_application);
fprintf(fp, "Summary data: %s\n", meta.summary);
if (meta.additional) {
fprintf(fp, " * Additional data:\n");
=======================================
--- /branches/client_app/src/logging.h Fri Aug 5 10:26:23 2011
+++ /branches/client_app/src/logging.h Fri Aug 5 11:25:21 2011
@@ -56,6 +56,7 @@
char client_name[64];
char client_os[32];
char client_browser[32];
+ char client_application[32];
int ctl_port;
char server_ip[64];
char server_name[64];
=======================================
--- /branches/client_app/src/test_meta.h Fri Aug 5 10:26:23 2011
+++ /branches/client_app/src/test_meta.h Fri Aug 5 11:25:21 2011
@@ -12,6 +12,7 @@
#define META_BROWSER_OS "client.browser.name"
#define META_CLIENT_KERNEL_VERSION "client.kernel.version"
#define META_CLIENT_VERSION "client.version"
+#define META_CLIENT_APPLICATION "client.application"
int test_meta_clt(int ctlSocket, char tests, char* host, int conn_options);
=======================================
--- /branches/client_app/src/test_meta_clt.c Fri Aug 5 10:26:23 2011
+++ /branches/client_app/src/test_meta_clt.c Fri Aug 5 11:25:21 2011
@@ -66,6 +66,9 @@
sprintf(buff, "%s:%s", META_BROWSER_OS, "- (web100clt)");
send_msg(ctlSocket, TEST_MSG, buff, strlen(buff));
+ sprintf(buff, "%s:%s", META_CLIENT_APPLICATION, "cli");
+ send_msg(ctlSocket, TEST_MSG, buff, strlen(buff));
+
if ((fp = fopen("/proc/sys/kernel/osrelease", "r")) == NULL) {
log_println(0, "Unable to determine client kernel version.");
} else {
=======================================
--- /branches/client_app/src/test_meta_srv.c Fri Aug 5 10:26:23 2011
+++ /branches/client_app/src/test_meta_srv.c Fri Aug 5 11:25:21 2011
@@ -99,6 +99,12 @@
snprintf(meta.client_browser, sizeof(meta.client_browser), "%s", value);
/*continue;*/
}
+
+ 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;*/
+ }
if (new_entry) {
new_entry->next = (struct metaentry *) malloc(sizeof(struct metaentry));
- [ndt-dev] [ndt] r467 committed - Add client app metadata changes to the correct branch., ndt, 08/05/2011
Archive powered by MHonArc 2.6.16.