[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-twister] branch master updated: focus code more on t
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-twister] branch master updated: focus code more on the API |
Date: |
Fri, 14 Sep 2018 14:46:11 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository twister.
The following commit(s) were added to refs/heads/master by this push:
new 541a089 focus code more on the API
541a089 is described below
commit 541a089170ab9b314d2f9f5fe5702256bb1226cb
Author: Christian Grothoff <address@hidden>
AuthorDate: Fri Sep 14 14:46:09 2018 +0200
focus code more on the API
---
presentation/twister.tex | 48 ++++++++++++++++--------------------------------
1 file changed, 16 insertions(+), 32 deletions(-)
diff --git a/presentation/twister.tex b/presentation/twister.tex
index 9fc0f8b..eeee92a 100644
--- a/presentation/twister.tex
+++ b/presentation/twister.tex
@@ -4,7 +4,7 @@
\usepackage{calc}
\usepackage[utf8]{inputenc} % set your input encoding differently, if you want
\usepackage[english]{babel}
-
+\usepackage{listings}
\usepackage{wrapfig}
\usepackage{fancyvrb}
\usepackage{enumitem}
@@ -142,37 +142,21 @@
\includegraphics[scale=0.09]{Whole-NoClientServer.png}
\end{textblock*}
- \begin{Verbatim}[fontsize=\tiny]
- #include <taler/taler_twister_service.h>
- #define CONFIG "twister.conf"
-
- struct GNUNET_OS_Process *twisterd;
- struct TALER_TWISTER_Handle *handle;
- static void
- callback (void *cls)
- {
- fprintf (stderr, "Command received\n");
- }
-
- /* Start the Twister and connect to it */
- TALER_TESTING_prepare_twister (CONFIG);
- twisterd = TALER_TESTING_run_twister (CONFIG);
- handle = TALER_TWISTER_connect (CONFIG);
-
- /* Issue char-flipping command */
- TALER_TWISTER_flip_upload (handle,
- "child.one",
- callback,
- NULL);
- /* Next HTTP POST will get its "child.one" string
- * field randomly flipped in one random char. */
- sleep (10);
-
- TALER_TWISTER_disconnect (handle);
- GNUNET_OS_kill (twisterd, SIGINT);
- GNUNET_OS_wait (twisterd);
- GNUNET_OS_destroy (twisterd);
- \end{Verbatim}
+{\tiny
+\begin{lstlisting}[language=C,basicstyle=\footnotesize,keywordstyle=\color{blue}]
+#include <taler/taler_twister_service.h>
+
+handle = TALER_TWISTER_connect (CONFIG);
+
+/* Issue char-flipping command */
+TALER_TWISTER_flip_upload (handle,
+ "child.one",
+ &callback,
+ NULL);
+// ...
+TALER_TWISTER_disconnect (handle);
+\end{lstlisting}
+}
\end{frame}
\end{document}
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-twister] branch master updated: focus code more on the API,
gnunet <=