⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rfc937.txt

📁 RFC 相关的技术文档
💻 TXT
📖 第 1 页 / 共 3 页
字号:
RFC 937                                                    February 1985Post Office ProtocolClient State Diagram                             |                    ^  + BYE                            |  Open              |  -----                            |           Greet    |  Close                            V           -----    |                               +-------+       QUIT    +-------+                        | CALL  |-------------->| EXIT  |                        +-------+               +-------+                            |                       ^                                |  Greet                |                                |  -----                |                                |  HELO                 |                    +---->+     |                       |              #NNN  ^     |     |        #NNN           |              ----  |     V     V        ----           |              FOLD  |    +-------+       QUIT           |                    +<---| NMBR  |--------------------->+                         +-------+                      ^                          ^     |                       |                          |     |  #NNN                 |                          |     |  ----                 |                    =CCC  |     |  READ                 |                    ----  |     |                       |                    FOLD  |     |        =CCC           |                          |     V        ----           |              =CCC  +--->+-------+       QUIT           |              ----  ^    | SIZE  |--------------------->+              READ  +<---+-------+                                                 ^     |                                                  |     |  =CCC                                      data  |     |  ----                                      ----  |     |  RETR                                      ack   |     |                                                  |     V                                                 +-------+                                                | XFER  |                                                +-------+                                Butler, et. al.                                                [Page 17]RFC 937                                                    February 1985Post Office ProtocolServer State Diagram                          +<----------------------+  Close                         |                       |  -----                 Listen  |                       |  Close                         V                       |                            +-------+                  +-------+                     | LSTN  |                  | DONE  |                     +-------+                  +-------+                         |                          ^                             |  Open                    |                             |  -----                   |                             |  Greet                   |                             |                          |                             |           QUIT           |                             V           -----          |                         +-------+       + BYE          |                         | AUTH  |--------------------->+                         +-------+                      ^                             |                          |                             |  HELO                    |                             |  ----                    |                             |  #NNN                    |                             |                          |                             |           QUIT           |                             V           -----          |              FOLD  +--->+-------+       + BYE          |              ----  ^    | MBOX  |--------------------->+              #NNN  +<---+-------+                      ^                          ^     |                       |                          |     |  READ                 |                    FOLD  |     |  ----                 |                    ----  |     |  =CCC                 |                    #NNN  |     |        QUIT           |                          |     V        -----          |              READ  +--->+-------+       + BYE          |              ----  ^    | ITEM  |--------------------->+              =CCC  +<---+-------+                                                 ^     |                                                  |     |  RETR                                      ack   |     |  ----                                      ----  |     |  data                                      =CCC  |     |                                                  |     V                                                 +-------+                                                | NEXT  |                                                +-------+                             Butler, et. al.                                                [Page 18]RFC 937                                                    February 1985Post Office ProtocolCombined Flow Diagram      +----+                                                                 |CALL|<------------------------------------------------------------+   |LSTN|                                                             ^   +----+                                                             |    | Greet                                                           |    |                                                                 |    |  +----------------------------------------------------->+       |    |  ^ QUIT                                                 |       |    V  |                                                      V       |   +----+        +----+                                      +----+   |   |CALL| HELO   |NMBR|                                      |EXIT|   |   |AUTH|------->|AUTH|                                      |AUTH|   |   +----+        +----+                                      +----+   |                  | #NNN                                   + Bye |    |                  |                                              |    |                  |  +------------------------------------>+     |    |                  |  ^ QUIT                                |     |    |                  V  |                                     V     |    |            +--->+----+        +----+                     +----+ |    |       FOLD ^    |NMBR| READ   |SIZE|                     |EXIT| |    |       ---- |    |MBOX|------->|MBOX|                     |MBOX| |    |       #NNN +<---+----+        +----+                     +----+ |    |                     ^           | =CCC                 + Bye |  |    |                     |           |                            |  |    |                FOLD +<--------+ | +------------------->+     |  |    |                ----           ^ | ^ QUIT               |     |  |    |                #NNN           | V |                    V     |  |    |                         +--->+-----+        +----+    +----+ |  |    |                    READ ^    |SIZE | RETR   |XFER|    |EXIT| |  |    |                    ---- |    | ITEM|------->|ITEM|    |ITEM| |  |    |                    =CCC +<---+-----+        +----+    +----+ |  |    |                                 ^             | data      |  |  |    |                                 |             |           |  |  |    |                            =CCC |             V     + Bye |  |  |    |                               +----+        +----+        |  |  |    |                               |SIZE|    Ack |XFER|        |  |  |    |                               |NEXT|<-------|NEXT|        |  |  |    |                               +----+        +----+        |  |  |    |                                                           |  |  |    |                                                           |  |  |    |                                                           V  V  V    |                                                          +-------+   |                                                          | EXIT  |-->+                                                          | DONE  |                                                              +-------+    Butler, et. al.                                                [Page 19]RFC 937                                                    February 1985Post Office ProtocolClient Decision Table             |            STATE                 |   -------+----------------------------------|   INPUT  | CALL | NMBR | SIZE | XFER | EXIT |   -------+----------------------------------|   Greet  |  2   |  1   |  1   |  1   |  6   |   -------+----------------------------------|   #NNN   |  1   |  3   |  1   |  1   |  6   |   -------+----------------------------------|   =CCC   |  1   |  1   |  4   |  1   |  6   |   -------+----------------------------------|   data   |  1   |  1   |  1   |  5   |  6   |   -------+----------------------------------|   + Bye  |  1   |  1   |  1   |  1   |  6   |   -------+----------------------------------|   Close  |  1   |  1   |  1   |  1   |  6   |   -------+----------------------------------|   other  |  1   |  1   |  1   |  1   |  6   |   -------+----------------------------------|   Timeout|  1   |  1   |  1   |  1   |  6   |   -------+----------------------------------|   Butler, et. al.                                                [Page 20]RFC 937                                                    February 1985Post Office Protocol   Actions:      1.  This is garbage.  Send "QUIT", and go to EXIT state.      2.  (a) If the greeting is right then send "HELO"              and go to NMBR state,          (b) Else send "QUIT" and go to EXIT state.      3.  (a) If user wants this folder and NNN > 0              then send "READ" and go to SIZE state,          (b) If user wants a this folder and NNN = 0              then send "QUIT" and go to EXIT state,          (c) If user wants a different folder              then send "FOLD" and go to NMBR state.      4.  (a) If user wants this message and CCC > 0              then send "RETR" and go to XFER state,          (b) If user wants a this message and CCC = 0              then send "QUIT" and go to EXIT state,          (c) If user wants a different message              then send "READ" and go to SIZE state.      5.  (a) If user wants this message kept              then send "ACKS" and go to SIZE state,          (b) If user wants a this message deleted              then send "ACKD" and go to SIZE state,          (c) If user wants a this message again              then send "NACK" and go to SIZE state.      6.  Close the connection.Butler, et. al.                                                [Page 21]RFC 937                                                    February 1985Post Office ProtocolServer Decision Table             |              STATE                          -------+-----------------------------------------    INPUT  | LSTN | AUTH | MBOX | ITEM | NEXT | DONE |   -------+-----------------------------------------|   Open   |  2   |  1   |  1   |  1   |  1   |  1   |   -------+-----------------------------------------|   HELO   |  1   |  3   |  1   |  1   |  1   |  1   |   -------+-----------------------------------------|   FOLD   |  1   |  1   |  5   |  5   |  1   |  1   |   -------+-----------------------------------------|   READ   |  1   |  1   |  6   |  6   |  1   |  1   |   -------+-----------------------------------------|   RETR   |  1   |  1   |  1   |  7   |  1   |  1   |   -------+-----------------------------------------|   ACKS   |  1   |  1   |  1   |  1   |  8   |  1   |   -------+-----------------------------------------|   ACKD   |  1   |  1   |  1   |  1   |  8   |  1   |   -------+-----------------------------------------|   NACK   |  1   |  1   |  1   |  1   |  8   |  1   |   -------+-----------------------------------------|   QUIT   |  1   |  4   |  4   |  4   |  1   |  1   |   -------+-----------------------------------------|   Close  |  1   |  1   |  1   |  1   |  1   |  9   |   -------+-----------------------------------------|   other  |  1   |  1   |  1   |  1   |  1   |  1   |   -------+-----------------------------------------|   Timeout|      |  1   |  1   |  1   |  1   |  1   |   -------+-----------------------------------------|   Butler, et. al.                                                [Page 22]RFC 937                                                    February 1985Post Office Protocol   Actions:      1.  This is garbage.  Send "- error", and Close the connection.      2.  Send the greeting. Go to AUTH state.      3.  (a) If authorized user then send "#NNN" and go tp MBOX state,          (b) Else send "- error" and Close the connection.      4.  Send "+ Bye" and go to DONE state.      5.  Send "+NNN" and go to MBOX state.      6.  Send "=CCC" and go to ITEM state.      7.  If message exists then send the data and got to NEXT state,          Else Close the connection.      8.  Do what ACKS/ACKD/NACK require and go to ITEM state.      9.  Close the connection.Butler, et. al.                                                [Page 23]RFC 937                                                    February 1985Post Office ProtocolAcknowledgment   We would like to acknowledge the helpful comments that we received on   the first version of POP described in RFC 918, and the draft of POP2   distributed to interested parties.References   [1]  Postel, J., "Simple Mail Transfer Protocol", RFC 821,   USC/Information Sciences Institute, August 1982.   [2]  Crocker, D., "Standard for the Format of ARPA-Internet Text   Messages", RFC 822, University of Delaware, August 1982.   [3]  Reynolds, J.K., "Post Office Protocol", RFC 918, USC/Information   Sciences Institute, October 1984.   [4]  Reynolds, J.K., and J. Postel, "Assigned Numbers", RFC 923,   USC/Information Sciences Institute, October 1984.Butler, et. al.                                                [Page 24]

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -