Просмотр исходного кода

r13906@catbus: nickm | 2007-07-25 18:49:50 -0400
Patch from tup: correct grammar for asynchonous reply lines in control-spec.txt


svn:r10931

Nick Mathewson 19 лет назад
Родитель
Сommit
5b82188333
1 измененных файлов с 9 добавлено и 7 удалено
  1. 9 7
      doc/spec/control-spec.txt

+ 9 - 7
doc/spec/control-spec.txt

@@ -62,14 +62,16 @@ $Id$
 
 
 2.3. Replies from Tor to the controller
 2.3. Replies from Tor to the controller
 
 
-    Reply = *(MidReplyLine / DataReplyLine) EndReplyLine
-
-    MidReplyLine = "-" ReplyLine
-    DataReplyLine = "+" ReplyLine Data
-    EndReplyLine = SP ReplyLine
-    ReplyLine = StatusCode [ SP ReplyText ]  CRLF
+    Reply = SyncReply / AsyncReply
+    SyncReply = *(MidReplyLine / DataReplyLine) EndReplyLine
+    AsyncReply = *MidReplyLine EndReplyLine / DataReplyLine
+
+    MidReplyLine = StatusCode "-" ReplyLine
+    DataReplyLine = StatusCode "+" ReplyLine Data
+    EndReplyLine = StatusCode SP ReplyLine
+    ReplyLine = [ReplyText] CRLF
     ReplyText = XXXX
     ReplyText = XXXX
-    StatusCode = XXXX
+    StatusCode = 3DIGIT
 
 
   Specific replies are mentioned below in section 3, and described more fully
   Specific replies are mentioned below in section 3, and described more fully
   in section 4.
   in section 4.