[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r3464 - GNUnet/src/applications/dht/tools
From: |
grothoff |
Subject: |
[GNUnet-SVN] r3464 - GNUnet/src/applications/dht/tools |
Date: |
Sun, 8 Oct 2006 14:38:10 -0700 (PDT) |
Author: grothoff
Date: 2006-10-08 14:38:08 -0700 (Sun, 08 Oct 2006)
New Revision: 3464
Modified:
GNUnet/src/applications/dht/tools/dht_api.c
GNUnet/src/applications/dht/tools/dhttest2.c
Log:
fx
Modified: GNUnet/src/applications/dht/tools/dht_api.c
===================================================================
--- GNUnet/src/applications/dht/tools/dht_api.c 2006-10-08 21:37:03 UTC (rev
3463)
+++ GNUnet/src/applications/dht/tools/dht_api.c 2006-10-08 21:38:08 UTC (rev
3464)
@@ -731,8 +731,12 @@
sock = client_connection_create(ectx,
cfg);
- if (sock == NULL)
+ if (sock == NULL) {
+ GE_LOG(ectx,
+ GE_DEBUG | GE_REQUEST | GE_USER,
+ "Could not connect to gnunetd\n");
return SYSERR;
+ }
req = MALLOC(sizeof(CS_dht_request_put_MESSAGE) +
ntohl(value->size) -
sizeof(DataContainer));
Modified: GNUnet/src/applications/dht/tools/dhttest2.c
===================================================================
--- GNUnet/src/applications/dht/tools/dhttest2.c 2006-10-08 21:37:03 UTC
(rev 3463)
+++ GNUnet/src/applications/dht/tools/dhttest2.c 2006-10-08 21:38:08 UTC
(rev 3464)
@@ -203,6 +203,9 @@
hash("key", 3, &key);
value = MALLOC(8);
value->size = ntohl(8);
+ memset(&value[1],
+ 'B',
+ 4);
printf("Peer2 stores key.\n");
CHECK2(OK == DHT_LIB_put(cfg,
ectx,
@@ -250,6 +253,9 @@
hash("key2", 4, &key);
value = MALLOC(8);
value->size = ntohl(8);
+ memset(&value[1],
+ 'A',
+ 4);
printf("Peer1 stores key2\n");
CHECK(OK == DHT_LIB_put(cfg,
ectx,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r3464 - GNUnet/src/applications/dht/tools,
grothoff <=