33 lines
841 B
Plaintext
33 lines
841 B
Plaintext
Guile bindings for GnuNet
|
||
—————————————————————————
|
||
|
||
Work in progress!
|
||
|
||
To try the stub gnunet-search clone, you must have a working GnuNet
|
||
configuration. Edit the file `examples/search.scm` and modify the line
|
||
|
||
(define config-file "~/.gnunet/gnunet.conf")
|
||
|
||
to match your configuration file.
|
||
|
||
Run Guile in the bindings directory:
|
||
|
||
$ cd guix/gnunet/
|
||
$ guile
|
||
|
||
Then in Guile’s prompt:
|
||
|
||
> (add-to-load-path ".")
|
||
> (load "examples/search.scm")
|
||
> ,m (gnunet-search)
|
||
> (main "foo")
|
||
|
||
This will start a 5 seconds search on the keyword “foo”. Here’s the
|
||
output when exactly one find matches the keyword “foo”:
|
||
|
||
> (main "foo")
|
||
Search service opened (#<pointer 0x2414dd8>)
|
||
Starting search on gnunet://fs/ksk/foo
|
||
RESULT! #<pointer 0x7ffcd822ee50>
|
||
|