gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r1440 - GNUnet-docs/WWW


From: grothoff
Subject: [GNUnet-SVN] r1440 - GNUnet-docs/WWW
Date: Tue, 12 Jul 2005 18:26:40 -0700 (PDT)

Author: grothoff
Date: 2005-07-12 18:26:37 -0700 (Tue, 12 Jul 2005)
New Revision: 1440

Modified:
   GNUnet-docs/WWW/protocol_cs.php3
   GNUnet-docs/WWW/protocol_p2p.php3
   GNUnet-docs/WWW/scripts.inc
Log:
try

Modified: GNUnet-docs/WWW/protocol_cs.php3
===================================================================
--- GNUnet-docs/WWW/protocol_cs.php3    2005-07-13 01:22:27 UTC (rev 1439)
+++ GNUnet-docs/WWW/protocol_cs.php3    2005-07-13 01:26:37 UTC (rev 1440)
@@ -10,12 +10,10 @@
 W("TCP is stream oriented, but GNUnet breaks the stream into records.");
 W("The different messages between GNUnet and the clients all have the 
following basic format:");
 EP();
-echo "<table class=\"border\" border=\"0\" cellspacing=\"0\" 
cellpadding=\"0\">\n";
-include("bittable.inc");
-row(shortEntry_("size of the record", NBO_()),
-    shortEntry_("CS message type", NBO_()));
-rowIntEntry("(size - 4) bytes of data");
-echo "</table>\n";
+LAYOUT("CS_HEADER",
+       ARRAY(N("message size", NBO_()) => 2,
+             N("request type", NBO_()) => 2,
+             N("(size - 4) bytes of data", "") => 0);
 BP();
 W("The message type constants are defined in <tt>gnunet_protocols.h</tt> and 
all have names starting with <tt>CS_PROTO_</tt>.");
 W("The suffix <tt>REQUEST</tt> is used for messages from the client to 
<tt>gnunetd</tt>.");

Modified: GNUnet-docs/WWW/protocol_p2p.php3
===================================================================
--- GNUnet-docs/WWW/protocol_p2p.php3   2005-07-13 01:22:27 UTC (rev 1439)
+++ GNUnet-docs/WWW/protocol_p2p.php3   2005-07-13 01:26:37 UTC (rev 1440)
@@ -28,7 +28,8 @@
 
 LAYOUT("MessagePart",
        ARRAY(N("message size", NBO_()) => 2,
-             N("request type", NBO_()) => 2));
+             N("request type", NBO_()) => 2,
+             N("(size - 4) bytes of data", "") => 0));
 
 BP();
 W("The header is followed by <tt>message size</tt> octets for the message.");

Modified: GNUnet-docs/WWW/scripts.inc
===================================================================
--- GNUnet-docs/WWW/scripts.inc 2005-07-13 01:22:27 UTC (rev 1439)
+++ GNUnet-docs/WWW/scripts.inc 2005-07-13 01:26:37 UTC (rev 1440)
@@ -47,7 +47,7 @@
   $currString = "";
   foreach($elements as $name => $size) {
     if (($offset % 4) == 0) {
-      if ($size >= 4) {
+      if ( ($size >= 4) || ($size == 0) ) {
         $ret[] = "<td>$offset</td><td colspan=4>$name</td>";
         $mod = $size % 4;
         if ($mod > 0) {





reply via email to

[Prev in Thread] Current Thread [Next in Thread]