addrlen,
no_resolve,
tname,
- GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 20),
+ GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 10),
&process_resolved_address,
pc);
return GNUNET_OK;
if (peer == NULL)
{
+ fprintf (stderr,_("Error in communication with PEERINFO service\n"));
GNUNET_PEERINFO_disconnect (peerinfo);
return;
}
_("Could not access PEERINFO service. Exiting.\n"));
return;
}
- if (NULL == GNUNET_PEERINFO_iterate (peerinfo,
+ GNUNET_PEERINFO_iterate (peerinfo,
NULL,
GNUNET_TIME_relative_multiply
- (GNUNET_TIME_UNIT_SECONDS, 20),
- &print_peer_info, NULL))
- fprintf (stderr,
- _("Error in communication with PEERINFO service\n"));
+ (GNUNET_TIME_UNIT_SECONDS, 5),
+ &print_peer_info, NULL);
}
else
{
struct TransmissionQueueEntry *tqe;
if (NULL == (tqe = h->tq_head))
- return;
+ return NULL;
if (h->th != NULL)
- return;
+ return NULL;
if (h->in_receive == GNUNET_YES)
- return;
+ return NULL;
h->th = GNUNET_CLIENT_notify_transmit_ready (h->client,
tqe->size,
GNUNET_TIME_absolute_get_remaining (tqe->timeout),
* @param timeout how long to wait until timing out
* @param callback the method to call for each peer
* @param callback_cls closure for callback
- * @return NULL on error (in this case, 'callback' is never called!),
- * otherwise an iterator context
+ * @return iterator context
*/
struct GNUNET_PEERINFO_IteratorContext *
GNUNET_PEERINFO_iterate (struct GNUNET_PEERINFO_Handle *h,