gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r20804 - gnunet-java/doc


From: gnunet
Subject: [GNUnet-SVN] r20804 - gnunet-java/doc
Date: Thu, 29 Mar 2012 13:52:59 +0200

Author: dold
Date: 2012-03-29 13:52:59 +0200 (Thu, 29 Mar 2012)
New Revision: 20804

Modified:
   gnunet-java/doc/gnunet-exercise.tex
Log:
added some ideas to the tutorial

Modified: gnunet-java/doc/gnunet-exercise.tex
===================================================================
--- gnunet-java/doc/gnunet-exercise.tex 2012-03-29 11:52:18 UTC (rev 20803)
+++ gnunet-java/doc/gnunet-exercise.tex 2012-03-29 11:52:59 UTC (rev 20804)
@@ -25,11 +25,12 @@
 \section{Prerequisites}
 This tutorial assumes that you have gnunet$\geq$0.9.2 installed on your system.
 Instructions on how to do this can be found at 
\url{https://gnunet.org/installation}.
+
 Make sure that the default gnunet services are running by typing
 \begin{lstlisting}
 gnunet-arm -I
 \end{lstlisting}
-The running services should be at least core,... (TODO)
+on your command line.
 
 \section{Installing gnunet-java}
 You can either check out the latest version of gnunet-java with
@@ -52,24 +53,40 @@
 of the network.
 
 \subsection{Project Layout}
+(explanation of the directory structure: src, test, bin, tools, 
gnunet-java-ext)
 
 \section{Creating an extension}
+(copying gnunet-java-ext, setting variables / the gnunet-java path in the bash 
wrapper)
 
-\subsection{A simple gnunet-java program}
+\section{A simple gnunet-java program}
+\lstset{language=java}
+\begin{lstlisting}
+public class HelloGnunet {
+    public static void main(String[] args) {
+            new Program(args) {
+                public void run() {
+                    System.out.println("Hello, gnunet");
+                }
+            }.start();
+}
+\end{lstlisting}
 
-\subsubsection{The skeleton for every program}
+\subsection{Adding and using command line arguments}
+Command line options are added by annotating members of your 
org.gnunet.util.Program-subclass
+with the address@hidden
 
-\subsubsection{Adding and using command line arguments}
 
-\subsubsection{Using an existing service API}
+\subsection{Using an existing service API}
+In this section we will use the gnunet statistics api to track how often the 
HelloGnunet program
+has been run.
 
-\subsection{Going into Details}
+\section {Overview of useful APIs}
+statistics, dht, core
 
-\subsubsection{overview of the client api}
+\section{Communicating with a Service directly}
+\subsection{Using the client API}
+\subsection{Defining a new message type}
+(example, annotations, running gnunet-java-update-msgtypes)
+\section{Writing a gnunet service}
 
-\subsubsection{defining your own message types / using the construct library}
-
-
-
-
 \end{document}




reply via email to

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