aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorng0 <ng0@infotropique.org>2017-10-26 12:59:47 +0000
committerng0 <ng0@infotropique.org>2017-10-26 13:00:55 +0000
commit732816be49f49ec4b3db669b73d817fe5f930803 (patch)
tree0ac125761c09e66f64b0da41716ee160a5f2f0ba /doc
parentfea7c5644a6eb4fa9bb68bf201cbf55996ae1c79 (diff)
downloadgnunet-732816be49f49ec4b3db669b73d817fe5f930803.tar.gz
gnunet-732816be49f49ec4b3db669b73d817fe5f930803.zip
@i{} -> @b{} and @{code} where appropriate
Avoid italics.
Diffstat (limited to 'doc')
-rw-r--r--doc/documentation/gnunet-c-tutorial.texi27
1 files changed, 14 insertions, 13 deletions
diff --git a/doc/documentation/gnunet-c-tutorial.texi b/doc/documentation/gnunet-c-tutorial.texi
index b62db7855..f39c7de64 100644
--- a/doc/documentation/gnunet-c-tutorial.texi
+++ b/doc/documentation/gnunet-c-tutorial.texi
@@ -163,7 +163,7 @@ and rerun the @code{gpg --verify-files} command.
163@b{Note:}@ 163@b{Note:}@
164@b{The pub key to sign the 0.10.1 release has been 164@b{The pub key to sign the 0.10.1 release has been
165revoked}. You will get an error message stating that 165revoked}. You will get an error message stating that
166@i{there is no known public key or that it has been revoked}. 166@b{there is no known public key or that it has been revoked}.
167The next release of GNUnet will have a valid signature 167The next release of GNUnet will have a valid signature
168again. We are sorry for the inconvenience this causes. 168again. We are sorry for the inconvenience this causes.
169Another possible source you could use is our 169Another possible source you could use is our
@@ -171,7 +171,7 @@ Another possible source you could use is our
171by every developer. 171by every developer.
172 172
173Now you can extract the tarball and rename the resulting 173Now you can extract the tarball and rename the resulting
174directory to @i{gnunet} which we will be using in the 174directory to @file{gnunet} which we will be using in the
175remainder of this document. 175remainder of this document.
176 176
177@example 177@example
@@ -713,9 +713,10 @@ marked as ``done'' before their completion.
713 713
714An operation is treated as completed when it succeeds or fails. 714An operation is treated as completed when it succeeds or fails.
715Completion of an operation is either conveyed as events through 715Completion of an operation is either conveyed as events through
716@i{controller event callback} or through respective operation 716@dfn{controller event callback} or through respective
717completion callbacks. In functions which support completion 717@dfn{operation completion callbacks}.
718notification through both controller event callback and operation 718In functions which support completion notification
719through both controller event callback and operation
719completion callback, first the controller event callback will be 720completion callback, first the controller event callback will be
720called. If the operation is not marked as done in that callback 721called. If the operation is not marked as done in that callback
721or if the callback is given as NULL when creating the operation, 722or if the callback is given as NULL when creating the operation,
@@ -733,14 +734,14 @@ discouraged as their locations are dynamically created and will be
733different among various runs of testbed. To make access to these 734different among various runs of testbed. To make access to these
734configurations easy, testbed API provides the function 735configurations easy, testbed API provides the function
735@code{GNUNET\_TESTBED\_service\_connect()}. This function fetches 736@code{GNUNET\_TESTBED\_service\_connect()}. This function fetches
736the configuration of a given peer and calls the @i{Connect Adapter}. 737the configuration of a given peer and calls the @dfn{Connect Adapter}.
737In the example code, it is the @code{dht\_ca}. A connect adapter is 738In the example code, it is the @code{dht\_ca}. A connect adapter is
738expected to open the connection to the needed service by using the 739expected to open the connection to the needed service by using the
739provided configuration and return the created service connection handle. 740provided configuration and return the created service connection handle.
740Successful connection to the needed service is signaled through 741Successful connection to the needed service is signaled through
741@code{service\_connect\_comp\_cb}. 742@code{service\_connect\_comp\_cb}.
742 743
743A dual to connect adapter is the @i{Disconnect Adapter}. This callback 744A dual to connect adapter is the @dfn{Disconnect Adapter}. This callback
744is called after the connect adapter has been called when the operation 745is called after the connect adapter has been called when the operation
745from @code{GNUNET\_TESTBED\_service\_connect()} is marked as ``done''. 746from @code{GNUNET\_TESTBED\_service\_connect()} is marked as ``done''.
746It has to disconnect from the service with the provided service 747It has to disconnect from the service with the provided service
@@ -750,8 +751,8 @@ Exercise: Find out how many peers you can run on your system.
750 751
751Exercise: Find out how to create a 2D torus topology by changing the 752Exercise: Find out how to create a 2D torus topology by changing the
752options in the configuration file. 753options in the configuration file.
753See @uref{https://gnunet.org/supported-topologies}, then use the 754@xref{Supported Topologies, The GNUnet Reference Documentation ,, gnunet, The GNUnet Reference Documentation},
754DHT API to store and retrieve values in the network. 755then use the DHT API to store and retrieve values in the network.
755 756
756@node Developing Applications 757@node Developing Applications
757@chapter Developing Applications 758@chapter Developing Applications
@@ -1105,7 +1106,7 @@ peer to the service:
1105 1106
1106@noindent 1107@noindent
1107Note that whatever you return from @code{connects} is given as the 1108Note that whatever you return from @code{connects} is given as the
1108@i{cls} argument to the message handlers for messages from 1109@code{cls} argument to the message handlers for messages from
1109the respective peer. 1110the respective peer.
1110 1111
1111Exercise: Create a service that connects to the @code{CORE}. Then 1112Exercise: Create a service that connects to the @code{CORE}. Then
@@ -1116,7 +1117,7 @@ callback is invoked.
1116@subsection Receiving P2P Messages 1117@subsection Receiving P2P Messages
1117 1118
1118To receive messages from @code{CORE}, you pass the desired 1119To receive messages from @code{CORE}, you pass the desired
1119@i{handlers} to the @code{GNUNET\_CORE\_connect()} function, 1120@code{handlers} to the @code{GNUNET\_CORE\_connect()} function,
1120just as we showed for services. 1121just as we showed for services.
1121 1122
1122It is your responsibility to process messages fast enough or 1123It is your responsibility to process messages fast enough or
@@ -1132,8 +1133,8 @@ the two peers are connected? Why?
1132@node Sending P2P Messages 1133@node Sending P2P Messages
1133@subsection Sending P2P Messages 1134@subsection Sending P2P Messages
1134 1135
1135You can transmit messages to other peers using the @i{mq} you were 1136You can transmit messages to other peers using the @code{mq} you were
1136given during the @code{connect} callback. Note that the @i{mq} 1137given during the @code{connect} callback. Note that the @code{mq}
1137automatically is released upon @code{disconnect} and that you must 1138automatically is released upon @code{disconnect} and that you must
1138not use it afterwards. 1139not use it afterwards.
1139 1140