aboutsummaryrefslogtreecommitdiff
path: root/src/peerinfo
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-10-10 15:43:25 +0000
committerChristian Grothoff <christian@grothoff.org>2016-10-10 15:43:25 +0000
commit2bf962c76bb82c1f38acea42c7bdfb241e2582e7 (patch)
tree394fbcd40174f8995c8efc888f4b04188e63f8bd /src/peerinfo
parent2378353eab064ed06166e025a1df9d4a23efe6c4 (diff)
downloadgnunet-2bf962c76bb82c1f38acea42c7bdfb241e2582e7.tar.gz
gnunet-2bf962c76bb82c1f38acea42c7bdfb241e2582e7.zip
avoid triggering dropped message 333 warning
Diffstat (limited to 'src/peerinfo')
-rw-r--r--src/peerinfo/peerinfo_api_notify.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/peerinfo/peerinfo_api_notify.c b/src/peerinfo/peerinfo_api_notify.c
index 625cfb8f6..e707a911e 100644
--- a/src/peerinfo/peerinfo_api_notify.c
+++ b/src/peerinfo/peerinfo_api_notify.c
@@ -172,6 +172,23 @@ handle_notification (void *cls,
172 172
173 173
174/** 174/**
175 * Type of a function to call when we receive a message from the
176 * service. Call the iterator with the result and (if applicable)
177 * continue to receive more messages or trigger processing the next
178 * event (if applicable).
179 *
180 * @param cls closure
181 * @param msg message received, NULL on timeout or fatal error
182 */
183static void
184handle_end_iteration (void *cls,
185 const struct GNUNET_MessageHeader *msg)
186{
187 /* these are ignored by the notify API */
188}
189
190
191/**
175 * Task to re-try connecting to peerinfo. 192 * Task to re-try connecting to peerinfo.
176 * 193 *
177 * @param cls the `struct GNUNET_PEERINFO_NotifyContext *` 194 * @param cls the `struct GNUNET_PEERINFO_NotifyContext *`
@@ -185,6 +202,10 @@ reconnect (void *cls)
185 GNUNET_MESSAGE_TYPE_PEERINFO_INFO, 202 GNUNET_MESSAGE_TYPE_PEERINFO_INFO,
186 struct InfoMessage, 203 struct InfoMessage,
187 nc), 204 nc),
205 GNUNET_MQ_hd_fixed_size (end_iteration,
206 GNUNET_MESSAGE_TYPE_PEERINFO_INFO_END,
207 struct GNUNET_MessageHeader,
208 nc),
188 GNUNET_MQ_handler_end () 209 GNUNET_MQ_handler_end ()
189 }; 210 };
190 struct GNUNET_MQ_Envelope *env; 211 struct GNUNET_MQ_Envelope *env;