diff options
author | ng0 <ng0@infotropique.org> | 2017-08-24 13:46:33 +0000 |
---|---|---|
committer | ng0 <ng0@infotropique.org> | 2017-08-24 13:46:33 +0000 |
commit | 437d16756b2aab88fb4ad1b642ae1f0b381bf190 (patch) | |
tree | 9eae1a8428d9e792f20e4320d9d78fc25af5e2d1 /doc | |
parent | daa0f2090f74ef3a34a9ecff996e909369beb8af (diff) | |
download | gnunet-437d16756b2aab88fb4ad1b642ae1f0b381bf190.tar.gz gnunet-437d16756b2aab88fb4ad1b642ae1f0b381bf190.zip |
+
Diffstat (limited to 'doc')
-rw-r--r-- | doc/gnunet-c-tutorial.texi | 49 |
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 |
505 | disconnect from the service with the provided service handle (\texttt{op\_result}). | 505 | disconnect from the service with the provided service handle (\texttt{op\_result}). |
506 | 506 | ||
507 | Exercise: Find out how many peers you can run on your system.} | 507 | Exercise: Find out how many peers you can run on your system. |
508 | 508 | ||
509 | Exercise: Find out how to create a 2D torus topology by changing the | 509 | Exercise: 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 | ||
533 | The GNUnet ext template includes examples and a working buildsystem for a new GNUnet service. | 532 | The GNUnet ext template includes examples and a working buildsystem for a new GNUnet service. |
534 | A common GNUnet service consists of the following parts which will be discussed in detail in the | 533 | A common GNUnet service consists of the following parts which will be discussed in detail in the |
535 | remainder of this document. The functionality of a GNUnet service is implemented in: | 534 | remainder 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 | ||
546 | The interfaces for these entities are defined in: | 542 | The 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 | ||
555 | In 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 | ||
550 | In 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 | ||
565 | The first step for writing any extension with a new service is to | 558 | The first step for writing any extension with a new service is to |
566 | ensure that the {\tt ext.conf.in} file contains entries for the | 559 | ensure 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 | |||
1473 | from {\tt gnunet-service-arm}.} | 1466 | from {\tt gnunet-service-arm}.} |
1474 | 1467 | ||
1475 | @bye | 1468 | @bye |
1476 | |||
1477 | @c Local Variables: | ||
1478 | @c ispell-local-dictionary: ``american''; | ||
1479 | @c End: | ||