[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r8112 - GNUnet/src/applications/dv/module
From: |
gnunet |
Subject: |
[GNUnet-SVN] r8112 - GNUnet/src/applications/dv/module |
Date: |
Thu, 15 Jan 2009 12:29:38 -0700 (MST) |
Author: nevans
Date: 2009-01-15 12:29:37 -0700 (Thu, 15 Jan 2009)
New Revision: 8112
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:13:30 UTC (rev
8111)
+++ GNUnet/src/applications/dv/module/dv.c 2009-01-15 19:29:37 UTC (rev
8112)
@@ -533,7 +533,19 @@
"dv", GNUNET_P2P_PROTO_DV_NEIGHBOR_MESSAGE);
+ ctx->direct_neighbors = GNUNET_multi_hash_map_create (max_hosts);
+ if (ctx->direct_neighbors == NULL)
+ {
+ ok = GNUNET_SYSERR;
+ }
+ ctx->extended_neighbors =
+ GNUNET_multi_hash_map_create (ctx->max_table_size * 3);
+ if (ctx->extended_neighbors == NULL)
+ {
+ ok = GNUNET_SYSERR;
+ }
+
if (GNUNET_SYSERR ==
coreAPI->peer_disconnect_notification_register
(&peer_disconnect_handler, NULL))
@@ -550,8 +562,8 @@
ok = GNUNET_SYSERR;
- /*sendingThread =
- GNUNET_thread_create (&neighbor_send_thread, &coreAPI, 1024 * 1);*/
+ sendingThread =
+ GNUNET_thread_create (&neighbor_send_thread, &coreAPI, 1024 * 1);
GNUNET_GC_get_configuration_value_number (coreAPI->cfg,
@@ -568,19 +580,6 @@
"gnunetd", "connection-max-hosts",
1, -1, 50, &max_hosts);
- ctx->direct_neighbors = GNUNET_multi_hash_map_create (max_hosts);
- if (ctx->direct_neighbors == NULL)
- {
- ok = GNUNET_SYSERR;
- }
-
- ctx->extended_neighbors =
- GNUNET_multi_hash_map_create (ctx->max_table_size * 3);
- if (ctx->extended_neighbors == NULL)
- {
- ok = GNUNET_SYSERR;
- }
-
GNUNET_GE_ASSERT (capi->ectx,
0 == GNUNET_GC_set_configuration_value_string (capi->cfg,
capi->ectx,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r8112 - GNUnet/src/applications/dv/module,
gnunet <=