[netperf-dev] netperf4 commit notice r221 -
branches/gobject_migration/src
raj at netperf.org
raj at netperf.org
Fri Mar 16 13:51:04 PST 2007
Author: raj
Date: 2007-03-16 13:51:00 -0800 (Fri, 16 Mar 2007)
New Revision: 221
Modified:
branches/gobject_migration/src/netperf4.c
Log:
eliminate some unwanted code in main()
Modified: branches/gobject_migration/src/netperf4.c
===================================================================
--- branches/gobject_migration/src/netperf4.c 2007-03-16 21:49:55 UTC (rev 220)
+++ branches/gobject_migration/src/netperf4.c 2007-03-16 21:51:00 UTC (rev 221)
@@ -1023,7 +1023,8 @@
whim and whether or not the user asked for an interactive session */
add_netservers_from_config(config_doc);
- loop = g_main_loop_new(NULL, FALSE);
+ loop = g_main_loop_new(NULL, /* use the default context */
+ FALSE); /* the loop isn't running at the time */
if (want_interactive) {
g_print("Yo, the user wants an interactive session\n");
@@ -1045,35 +1046,7 @@
g_main_loop_run(loop);
-#ifdef notdef
- netserver = g_object_new(TYPE_NETPERF_NETSERVER,
- "req-state", NSRV_CONNECTED,
- "id", "george",
- NULL);
- g_print("netserver george is at %p\n",netserver);
- g_hash_table_replace(server_hash,
- g_strdup("george"),
- netserver);
-
- netserver = g_object_new(TYPE_NETPERF_NETSERVER,
- "req-state", NSRV_CONNECTED,
- "id", "fred",
- NULL);
- g_print("netserver fred is at %p\n",netserver);
-
- g_hash_table_replace(server_hash,
- g_strdup("fred"),
- netserver);
-
- netserver = g_hash_table_lookup(server_hash,"fred");
- g_print("netserver fred is %p from the hash table\n",
- netserver);
-
- /* try iterating through all the entries in the hash table */
- g_hash_table_foreach(server_hash, print_netserver_hash_entry, NULL);
-#endif
-
return 0;
}
More information about the netperf-dev
mailing list