aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorng0 <ng0@infotropique.org>2017-08-24 13:46:33 +0000
committerng0 <ng0@infotropique.org>2017-08-24 13:46:33 +0000
commit437d16756b2aab88fb4ad1b642ae1f0b381bf190 (patch)
tree9eae1a8428d9e792f20e4320d9d78fc25af5e2d1 /doc
parentdaa0f2090f74ef3a34a9ecff996e909369beb8af (diff)
downloadgnunet-437d16756b2aab88fb4ad1b642ae1f0b381bf190.tar.gz
gnunet-437d16756b2aab88fb4ad1b642ae1f0b381bf190.zip
+
Diffstat (limited to 'doc')
-rw-r--r--doc/gnunet-c-tutorial.texi49
1 files changed, 19 insertions, 30 deletions
diff --git a/doc/gnunet-c-tutorial.texi b/doc/gnunet-c-tutorial.texi
index dc6ebb1fb..a6d46da31 100644
--- a/doc/gnunet-c-tutorial.texi
+++ b/doc/gnunet-c-tutorial.texi
@@ -504,12 +504,12 @@ called after the connect adapter has been called when the operation from
504\texttt{GNUNET\_TESTBED\_service\_connect()} is marked as ``done''. It has to 504\texttt{GNUNET\_TESTBED\_service\_connect()} is marked as ``done''. It has to
505disconnect from the service with the provided service handle (\texttt{op\_result}). 505disconnect from the service with the provided service handle (\texttt{op\_result}).
506 506
507Exercise: Find out how many peers you can run on your system.} 507Exercise: Find out how many peers you can run on your system.
508 508
509Exercise: Find out how to create a 2D torus topology by changing the 509Exercise: Find out how to create a 2D torus topology by changing the
510 options in the configuration file.\footnote{See @uref{https://gnunet.org/supported-topologies}} 510 options in the configuration file. See @uref{https://gnunet.org/supported-topologies}
511 Then use the DHT API to store and retrieve values in the 511 Then use the DHT API to store and retrieve values in the
512 network.} 512 network.
513 513
514 514
515@section Developing Applications 515@section Developing Applications
@@ -528,39 +528,32 @@ $ make
528$ make install 528$ make install
529$ make check 529$ make check
530@end example 530@end example
531% $
532 531
533The GNUnet ext template includes examples and a working buildsystem for a new GNUnet service. 532The GNUnet ext template includes examples and a working buildsystem for a new GNUnet service.
534A common GNUnet service consists of the following parts which will be discussed in detail in the 533A common GNUnet service consists of the following parts which will be discussed in detail in the
535remainder of this document. The functionality of a GNUnet service is implemented in: 534remainder of this document. The functionality of a GNUnet service is implemented in:
536 535
537\begin{itemize} 536@itemize
538\itemsep0em 537@item the GNUnet service (gnunet-ext/src/ext/gnunet-service-ext.c)
539 \item the GNUnet service (\lstinline|gnunet-ext/src/ext/gnunet-service-ext.c|) 538@item the client API (gnunet-ext/src/ext/ext_api.c)
540 \item the client API (\lstinline|gnunet-ext/src/ext/ext_api.c|) 539@item the client application using the service API (gnunet-ext/src/ext/gnunet-ext.c)
541 \item the client application using the service API (\lstinline|gnunet-ext/src/ext/gnunet-ext.c|) 540@end itemize
542
543
544\end{itemize}
545 541
546The interfaces for these entities are defined in: 542The interfaces for these entities are defined in:
547\begin{itemize} 543@itemize
548\itemsep0em 544@item client API interface (gnunet-ext/src/ext/ext.h)
549 \item client API interface (\lstinline|gnunet-ext/src/ext/ext.h|) 545@item the service interface (gnunet-ext/src/include/gnunet_service_SERVICE.h)
550 \item the service interface (\lstinline|gnunet-ext/src/include/gnunet_service_SERVICE.h|) 546@item the P2P protocol (gnunet-ext/src/include/gnunet_protocols_ext.h)
551 \item the P2P protocol (\lstinline|gnunet-ext/src/include/gnunet_protocols_ext.h|) 547@end itemize
552\end{itemize}
553
554 548
555In addition the \texttt{ext} systems provides:
556\begin{itemize}
557\itemsep0em
558 \item a test testing the API (\lstinline|gnunet-ext/src/ext/test_ext_api.c|)
559 \item a configuration template for the service (\lstinline|gnunet-ext/src/ext/ext.conf.in|)
560\end{itemize}
561 549
550In addition the ext systems provides:
551@itemize
552@item a test testing the API (gnunet-ext/src/ext/test_ext_api.c)
553@item a configuration template for the service (gnunet-ext/src/ext/ext.conf.in)
554@end itemize
562 555
563@subsection Adapting the Template} 556@subsection Adapting the Template
564 557
565The first step for writing any extension with a new service is to 558The first step for writing any extension with a new service is to
566ensure that the {\tt ext.conf.in} file contains entries for the 559ensure that the {\tt ext.conf.in} file contains entries for the
@@ -1473,7 +1466,3 @@ pointing to the leak using {\tt valgrind} while running the service
1473from {\tt gnunet-service-arm}.} 1466from {\tt gnunet-service-arm}.}
1474 1467
1475@bye 1468@bye
1476
1477@c Local Variables:
1478@c ispell-local-dictionary: ``american'';
1479@c End: