X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c53d0aac5a5ab41701f3320d95f1cd2b0f3fd005..4703f3b61b5b80fc392e35c833e82b202c5c04d3:/doc/gtut-tour-02-simple.doc diff --git a/doc/gtut-tour-02-simple.doc b/doc/gtut-tour-02-simple.doc index 1bc4dfe68a..16cfee88a0 100644 --- a/doc/gtut-tour-02-simple.doc +++ b/doc/gtut-tour-02-simple.doc @@ -1,5 +1,5 @@ -/** +/** @page GRAS_tut_tour_simpleexchange Lesson 2: Exchanging simple messages \section GRAS_tut_tour_simpleexchange_toc Table of Contents @@ -7,8 +7,8 @@ - \ref GRAS_tut_tour_simpleexchange_socks - \ref GRAS_tut_tour_simpleexchange_exchange - \ref GRAS_tut_tour_simpleexchange_recaping - -
+ +
\section GRAS_tut_tour_simpleexchange_msgtype Declaring the messages to be exchanged @@ -22,7 +22,7 @@ Fortunately, such discrepency will be detected in SG. We won't convey any payload in this lesson, so we just have to give the name of message to declare them: -\don'tinclude 02-simple.c +\dontinclude 02-simple.c \skip gras_msgtype_declare \until gras_msgtype_declare @@ -65,7 +65,7 @@ messages, you have to create a so-called client socket. For this, use \ref gras_socket_client with the hostname and the port of the process you want to contact as arguments. Our client should simply do: -\don'tinclude 02-simple.c +\dontinclude 02-simple.c \skip socket_client \until socket_client @@ -84,7 +84,7 @@ gras_msg_send on the sender side, and \ref gras_msg_wait on the receiver side. message, the message type (described by its name), and a pointer to the actual content of the message. Since we don't have any payload, this becomes: -\don'tinclude 02-simple.c +\dontinclude 02-simple.c \skip msg_send \until msg_send @@ -96,7 +96,7 @@ message you received while the last argument is where to put the payload. Since our server is willing to wait up to 60 seconds for a message, the following will do it: -\don'tinclude 02-simple.c +\dontinclude 02-simple.c \skip msg_wait \until msg_wait