gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet-nim] 01/02: make the cleanup proc the finalizer (no


From: gnunet
Subject: [GNUnet-SVN] [gnunet-nim] 01/02: make the cleanup proc the finalizer (no explicit call necessary anymore)
Date: Sun, 29 Jul 2018 20:02:09 +0200

This is an automated email from the git hooks/post-receive script.

lurchi pushed a commit to branch master
in repository gnunet-nim.

commit cd73042702170d0482992afa34a07ca50b5412b4
Author: lurchi <address@hidden>
AuthorDate: Sun Jul 29 19:31:09 2018 +0200

    make the cleanup proc the finalizer (no explicit call necessary anymore)
---
 gnunet_nim.nim | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/gnunet_nim.nim b/gnunet_nim.nim
index d141f85..bfeff69 100644
--- a/gnunet_nim.nim
+++ b/gnunet_nim.nim
@@ -6,6 +6,11 @@ proc firstTask(gnunetApp: ref GnunetApplication) {.async.} =
   echo "connecting Cadet"
   var cadet = await gnunetApp.connectCadet()
   echo "connected"
+  let port = cadet.openPort("test")
+  let channel = await port.channels.read()
+  echo "incoming connection!"
+  let message = await channel.messages.read()
+  echo "got message: ", message
   cadet.disconnect()
   echo "disconnected"
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]