[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [GNUnet-developers] Binding scheduler with another event loop, gnune
From: |
Christian Grothoff |
Subject: |
Re: [GNUnet-developers] Binding scheduler with another event loop, gnunet-search and gnunet-publish metadata |
Date: |
Fri, 22 Mar 2019 18:31:34 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 |
On 3/22/19 5:37 PM, Amirouche Boubekki wrote:
> Hello all,
>
>
> A) I would like to know how to bind gnunet event loop
> aka. scheduler to another event loop that will be
> the main event loop without relying on threads.
> The reason is in scheme I can use call/cc to implement
> something similar to python async / await the end result
> is that there no more or at least less callbacks in my code.
>
> Does anyone successfully integrated gnunet with another
> event loop?
>
> Almost exactly last year, there was some discussion about
> this topic on IRC and gnunet-web.
AFAIK only the existing 'select' implementation was finished. The API to
do this exists though: GNUNET_SCHEDULER_driver_init().
> B) Does it make sense to group search queries using a single call
> to gnunet-search? Does it save bandwidth or something?
It would not save bandwidth.
> C) In gnunet-publish there is an option -m aka. meta:
>
>
> -m, --meta=TYPE:VALUE set the meta-data for the given
> TYPE to the given VALUE
>
> How this metadata is used?
It is included in the search result for the file.
signature.asc
Description: OpenPGP digital signature