[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r8113 - GNUnet/src/applications/dv/module
From: |
gnunet |
Subject: |
[GNUnet-SVN] r8113 - GNUnet/src/applications/dv/module |
Date: |
Thu, 15 Jan 2009 15:55:46 -0700 (MST) |
Author: nevans
Date: 2009-01-15 15:55:46 -0700 (Thu, 15 Jan 2009)
New Revision: 8113
Modified:
GNUnet/src/applications/dv/module/dv.c
Log:
Modified: GNUnet/src/applications/dv/module/dv.c
===================================================================
--- GNUnet/src/applications/dv/module/dv.c 2009-01-15 19:29:37 UTC (rev
8112)
+++ GNUnet/src/applications/dv/module/dv.c 2009-01-15 22:55:46 UTC (rev
8113)
@@ -533,6 +533,29 @@
"dv", GNUNET_P2P_PROTO_DV_NEIGHBOR_MESSAGE);
+ GNUNET_GC_get_configuration_value_number (coreAPI->cfg,
+ "DV",
+ "FISHEYEDEPTH",
+ 0, -1, 3, &ctx->fisheye_depth);
+
+ GNUNET_GC_get_configuration_value_number (coreAPI->cfg,
+ "DV",
+ "TABLESIZE",
+ 0, -1, 100, &ctx->max_table_size);
+
+ GNUNET_GC_get_configuration_value_number (coreAPI->cfg,
+ "gnunetd", "connection-max-hosts",
+ 1, -1, 50, &max_hosts);
+
+ GNUNET_GE_ASSERT (capi->ectx,
+ 0 == GNUNET_GC_set_configuration_value_string (capi->cfg,
+ capi->ectx,
+ "ABOUT",
+ "dv",
+ _
+ ("enables
distance vector type routing (wip)")));
+
+
ctx->direct_neighbors = GNUNET_multi_hash_map_create (max_hosts);
if (ctx->direct_neighbors == NULL)
{
@@ -565,29 +588,6 @@
sendingThread =
GNUNET_thread_create (&neighbor_send_thread, &coreAPI, 1024 * 1);
-
- GNUNET_GC_get_configuration_value_number (coreAPI->cfg,
- "DV",
- "FISHEYEDEPTH",
- 0, -1, 3, &ctx->fisheye_depth);
-
- GNUNET_GC_get_configuration_value_number (coreAPI->cfg,
- "DV",
- "TABLESIZE",
- 0, -1, 100, &ctx->max_table_size);
-
- GNUNET_GC_get_configuration_value_number (coreAPI->cfg,
- "gnunetd", "connection-max-hosts",
- 1, -1, 50, &max_hosts);
-
- GNUNET_GE_ASSERT (capi->ectx,
- 0 == GNUNET_GC_set_configuration_value_string (capi->cfg,
- capi->ectx,
- "ABOUT",
- "dv",
- _
- ("enables
distance vector type routing (wip)")));
-
return ok;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r8113 - GNUnet/src/applications/dv/module,
gnunet <=