aboutsummaryrefslogtreecommitdiff
path: root/doc/chapters/developer.texi
diff options
context:
space:
mode:
Diffstat (limited to 'doc/chapters/developer.texi')
-rw-r--r--doc/chapters/developer.texi48
1 files changed, 24 insertions, 24 deletions
diff --git a/doc/chapters/developer.texi b/doc/chapters/developer.texi
index ce6b16087..8b7954836 100644
--- a/doc/chapters/developer.texi
+++ b/doc/chapters/developer.texi
@@ -2049,14 +2049,14 @@ any other peer connecting to the service.)
2049@menu 2049@menu
2050* Define new message types:: 2050* Define new message types::
2051* Define message struct:: 2051* Define message struct::
2052* Client: Establish connection:: 2052* Client - Establish connection::
2053* Client: Initialize request message:: 2053* Client - Initialize request message::
2054* Client: Send request and receive response:: 2054* Client - Send request and receive response::
2055* Server: Startup service:: 2055* Server - Startup service::
2056* Server: Add new handles for specified messages:: 2056* Server - Add new handles for specified messages::
2057* Server: Process request message:: 2057* Server - Process request message::
2058* Server: Response to client:: 2058* Server - Response to client::
2059* Server: Notification of clients:: 2059* Server - Notification of clients::
2060* Conversion between Network Byte Order (Big Endian) and Host Byte Order:: 2060* Conversion between Network Byte Order (Big Endian) and Host Byte Order::
2061@end menu 2061@end menu
2062 2062
@@ -2097,8 +2097,8 @@ both ensure correct alignment when sending structs over the network
2097@end menu 2097@end menu
2098 2098
2099@c *************************************************************************** 2099@c ***************************************************************************
2100@node Client: Establish connection 2100@node Client - Establish connection
2101@subsubsection Client: Establish connection 2101@subsubsection Client - Establish connection
2102@c %**end of header 2102@c %**end of header
2103 2103
2104 2104
@@ -2111,8 +2111,8 @@ GNUNET_CLIENT_connect ("transport", cfg);
2111@end example 2111@end example
2112 2112
2113@c *************************************************************************** 2113@c ***************************************************************************
2114@node Client: Initialize request message 2114@node Client - Initialize request message
2115@subsubsection Client: Initialize request message 2115@subsubsection Client - Initialize request message
2116@c %**end of header 2116@c %**end of header
2117 2117
2118When the connection is ready, we initialize the message. In this step, all the 2118When the connection is ready, we initialize the message. In this step, all the
@@ -2136,8 +2136,8 @@ conversion function please refer to Introduction of Big Endian and Little
2136Endian. 2136Endian.
2137 2137
2138@c *************************************************************************** 2138@c ***************************************************************************
2139@node Client: Send request and receive response 2139@node Client - Send request and receive response
2140@subsubsection Client: Send request and receive response 2140@subsubsection Client - Send request and receive response
2141@c %**end of header 2141@c %**end of header
2142 2142
2143FIXME: This is very outdated, see the tutorial for the 2143FIXME: This is very outdated, see the tutorial for the
@@ -2158,8 +2158,8 @@ the argument @code{address_response_processor} is a function with
2158@code{GNUNET_CLIENT_MessageHandler} type, which is used to process the reply 2158@code{GNUNET_CLIENT_MessageHandler} type, which is used to process the reply
2159message from the service. 2159message from the service.
2160 2160
2161@node Server: Startup service 2161@node Server - Startup service
2162@subsubsection Server: Startup service 2162@subsubsection Server - Startup service
2163 2163
2164After receiving the request message, we run a standard GNUnet service startup 2164After receiving the request message, we run a standard GNUnet service startup
2165sequence using @code{GNUNET_SERVICE_run}, as follows, 2165sequence using @code{GNUNET_SERVICE_run}, as follows,
@@ -2170,8 +2170,8 @@ GNUNET_SERVICE_OPTION_NONE, &run, NULL)); @}
2170@end example 2170@end example
2171 2171
2172@c *************************************************************************** 2172@c ***************************************************************************
2173@node Server: Add new handles for specified messages 2173@node Server - Add new handles for specified messages
2174@subsubsection Server: Add new handles for specified messages 2174@subsubsection Server - Add new handles for specified messages
2175@c %**end of header 2175@c %**end of header
2176 2176
2177in the function above the argument @code{run} is used to initiate transport 2177in the function above the argument @code{run} is used to initiate transport
@@ -2208,8 +2208,8 @@ can be set. In addition, the terminator sign depicted as @code{@{NULL, NULL, 0,
22080@}} is set in the last aera. 22080@}} is set in the last aera.
2209 2209
2210@c *************************************************************************** 2210@c ***************************************************************************
2211@node Server: Process request message 2211@node Server - Process request message
2212@subsubsection Server: Process request message 2212@subsubsection Server - Process request message
2213@c %**end of header 2213@c %**end of header
2214 2214
2215After the initialization of transport service, the request message would be 2215After the initialization of transport service, the request message would be
@@ -2249,8 +2249,8 @@ In comparison to the aforementioned situation, when the argument is equal to
2249@code{GNUNET_OK}, the service would continue to process the requst message. 2249@code{GNUNET_OK}, the service would continue to process the requst message.
2250 2250
2251@c *************************************************************************** 2251@c ***************************************************************************
2252@node Server: Response to client 2252@node Server - Response to client
2253@subsubsection Server: Response to client 2253@subsubsection Server - Response to client
2254@c %**end of header 2254@c %**end of header
2255 2255
2256Once the processing of current request is done, the server should give the 2256Once the processing of current request is done, the server should give the
@@ -2279,8 +2279,8 @@ Note that, there are also a number of other APIs provided to the service to
2279send the message. 2279send the message.
2280 2280
2281@c *************************************************************************** 2281@c ***************************************************************************
2282@node Server: Notification of clients 2282@node Server - Notification of clients
2283@subsubsection Server: Notification of clients 2283@subsubsection Server - Notification of clients
2284@c %**end of header 2284@c %**end of header
2285 2285
2286Often a service needs to (repeatedly) transmit notifications to a client or a 2286Often a service needs to (repeatedly) transmit notifications to a client or a