aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2011-01-03 14:21:25 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2011-01-03 14:21:25 +0000
commit748e690fe49e2639076cb76e6a4a4c5eb04e130e (patch)
treef76bcad30b4efc1f8daaf309ba38c3496603ce82 /src/core
parentcb3c882dbb05a797728dfd8b5983ade5a8999eac (diff)
downloadgnunet-748e690fe49e2639076cb76e6a4a4c5eb04e130e.tar.gz
gnunet-748e690fe49e2639076cb76e6a4a4c5eb04e130e.zip
Changed peerinfo api to distinguish between last element and timeout
Diffstat (limited to 'src/core')
-rw-r--r--src/core/gnunet-service-core.c20
1 files changed, 18 insertions, 2 deletions
diff --git a/src/core/gnunet-service-core.c b/src/core/gnunet-service-core.c
index 290160414..dd1937f06 100644
--- a/src/core/gnunet-service-core.c
+++ b/src/core/gnunet-service-core.c
@@ -3006,10 +3006,18 @@ handle_client_request_connect (void *cls,
3006static void 3006static void
3007process_hello_retry_send_key (void *cls, 3007process_hello_retry_send_key (void *cls,
3008 const struct GNUNET_PeerIdentity *peer, 3008 const struct GNUNET_PeerIdentity *peer,
3009 const struct GNUNET_HELLO_Message *hello) 3009 const struct GNUNET_HELLO_Message *hello,
3010 const char *err_msg)
3010{ 3011{
3011 struct Neighbour *n = cls; 3012 struct Neighbour *n = cls;
3012 3013
3014 if (err_msg != NULL)
3015 {
3016 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
3017 _("Error in communication with PEERINFO service\n"));
3018 /* return; */
3019 }
3020
3013 if (peer == NULL) 3021 if (peer == NULL)
3014 { 3022 {
3015#if DEBUG_CORE 3023#if DEBUG_CORE
@@ -3318,11 +3326,19 @@ handle_set_key (struct Neighbour *n,
3318static void 3326static void
3319process_hello_retry_handle_set_key (void *cls, 3327process_hello_retry_handle_set_key (void *cls,
3320 const struct GNUNET_PeerIdentity *peer, 3328 const struct GNUNET_PeerIdentity *peer,
3321 const struct GNUNET_HELLO_Message *hello) 3329 const struct GNUNET_HELLO_Message *hello,
3330 const char *err_msg)
3322{ 3331{
3323 struct Neighbour *n = cls; 3332 struct Neighbour *n = cls;
3324 struct SetKeyMessage *sm = n->skm; 3333 struct SetKeyMessage *sm = n->skm;
3325 3334
3335 if (err_msg != NULL)
3336 {
3337 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
3338 _("Error in communication with PEERINFO service\n"));
3339 /* return; */
3340 }
3341
3326 if (peer == NULL) 3342 if (peer == NULL)
3327 { 3343 {
3328 n->skm = NULL; 3344 n->skm = NULL;