home *** CD-ROM | disk | FTP | other *** search
/ Unix System Administration Handbook 1997 October / usah_oct97.iso / rfc / 100s / rfc196.txt < prev    next >
Text File  |  1997-03-04  |  7KB  |  219 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7. NETWORK WORKING GROUP                      Richard W. Watson
  8. Request for Comments #196                  SRI-ARC
  9. NIC 7141                                   July 20, 1971
  10. Categories: A.5, D.7
  11. Obsoletes: none
  12. Updates: none
  13.  
  14.                       A MAIL BOX PROTOCOL
  15.  
  16. The purpose of this protocol is to provide at each site a
  17. standard mechanism to receive sequential files for immediate or
  18. deferred printing or other uses.  The files for deferred printing
  19. would probably be stored on intermediate disk files, although
  20. details of how a file is handled, stored, manipulated, or printed
  21. at a site are not the concern of this protocol.
  22.  
  23. It is also assumed that there would be a program at the sending
  24. site which sends the file in the format given below with the
  25. optional control codes when appropriate.  This program could
  26. probably be accessed as a subcommand of the Telnet program.
  27.  
  28. The motivation for developing this protocol is the Network
  29. Information Center's (NIC) need to be able to deliver messages
  30. and documents to remote sites, and to be able to receive
  31. documents for cataloging, redistribution, and other purposes from
  32. remote site without having to know the details of path name
  33. conventions and file system commands at each site.  Multiple mail
  34. boxes (128) are allowed at each site and are identified as
  35. described below.  The default is mail box number 0 for use with
  36. the standard mail printer defined below.
  37.  
  38. A mail box, as we see it, is simply a sequential file to which
  39. messages and documents are appended, separated by an appropriate
  40. site dependent code.
  41.  
  42. Although this protocol will enable people to transmit messages
  43. directly without going through the NIC, we want to encourage
  44. people to use the NIC as much as possible, so that dialogue will
  45. be recorded, cataloged and available for viewing online at NIC,
  46. using the powerful facilities of the ARC on Line System (NLS).
  47.  
  48. The Mail Box Protocol will use established network conventions,
  49. specifically the Network Control Program, Initial Connection
  50. Protocol, and Data Transfer Protocol, NIC 7104.
  51.  
  52. The normal transmission is to be full 7-bit ASCII in 8-bit bytes,
  53. the high order bit set to zero.
  54.  
  55.  
  56.  
  57.  
  58.                                                                 [Page 1]
  59.  
  60. A MAIL BOX PROTOCOL                             RFC 196  NIC 7141
  61.  
  62. The standard receiving mail printer for mail box number 0 is
  63. assumed to have a print line 72 characters wide, and a page of 66
  64. lines.  The new line convention will be carriage return (X'OD')
  65. followed by line feed (X'OA') as per the Telnet Protocol RFC 158,
  66. NIC 6768.  The standard printer will accept form feed (X'OC') as
  67. meaning move paper to the top of a new page.
  68.  
  69. It is the senders responsibility to control the length of the
  70. print line and page. If more than 72 characters per line are sent
  71. or if more than 66 lines are sent without a form feed, than the
  72. receiving site can handle these situations as appropriate for
  73. them.  These conventions can be changed by control codes as
  74. described below.
  75.  
  76. A message or document being sent to any mail box is a string of 8
  77. bit bytes.
  78.  
  79. At the head of the message or document sent to mail box number 0
  80. there is to be an initial address string terminated by a form
  81. feed.  This address string is to contain the sender's name and
  82. address, and the receiver's name and address formatted in some
  83. reasonable, easy-to-read form for a clerk to read and distribute.
  84. Comments could also be included in the address string.
  85.  
  86. The format of information in mail boxes other than mail box
  87. number 0 is not explicitly defined by this protocol.
  88.  
  89. Initial Connection
  90.  
  91.    Initial Connection will be as per the Official Initial
  92.    Connection Protocol, Documents #2, NIC 7101, to a standard
  93.    socket not yet assigned.  A candidate socket number would be
  94.    socket #5.
  95.  
  96. Data Transmission
  97.  
  98.    Data Transmission will be as per the Data Transfer Protocol,
  99.    RFC 171, NIC 6793.  That is, there will be a Modes Available
  100.    handshake, and then transmission of special control
  101.    information and data. A message or document is defined to be a
  102.    block of data.  Control information is to be global.  That is,
  103.    once a control mode is set it is assumed to apply during the
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.                                                                 [Page 2]
  112.  
  113. A MAIL BOX PROTOCOL                             RFC 196  NIC 7141
  114.  
  115.    life of the connection unless explicitly changed. More than
  116.    one document may be sent during the life of the connection
  117.    unless the infinite bit stream mode is used.  In the latter
  118.    case there will be one message or document per connection.  A
  119.    reasonable convention for control information sent using the
  120.    infinite bit stream mode seems to be to assume that is applies
  121.    only to the next data stream connection from the host which
  122.    sent the control stream.
  123.  
  124. Control Information
  125.  
  126.    The sending process should be capable of allowing the user to
  127.    indicate the control codes associated with the transmission of
  128.    a mail item.  The control codes can be used with any mail box
  129.    number.
  130.  
  131.    Mail Box Number
  132.  
  133.       A site may find, as is the case at NIC, that it is useful
  134.       to have more than one receiving mail box, each to be
  135.       associated with a different process.
  136.  
  137.       The mail box number for material to be printed by the
  138.       standard mail printer is mail box number 0 and is used by
  139.       default.
  140.  
  141.       Code X'DO'
  142.  
  143.          Meaning: A seven bit binary number in an eight bit field
  144.          with the high order bit set to zero is to follow
  145.          indicating the receiving mail box number.
  146.  
  147.    Transmission Code Type
  148.  
  149.       The default code type is 7-bit ASCII in an 8 bit field,
  150.       high order bit to zero.
  151.  
  152.       'Code X'AO'
  153.  
  154.          Meaning: A Data Type signal indicating that the
  155.          transmission code is 7-bit ASCII in an 8-bit field, high
  156.          order set to zero.
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.                                                                 [Page 3]
  165.  
  166. A MAIL BOX PROTOCOL                             RFC 196  NIC 7141
  167.  
  168.       Code X'A1'
  169.  
  170.          Meaning: Transparency, i.e. a stream of 8 bit bytes.
  171.  
  172.       Code X'A2'
  173.  
  174.          Meaning:  EBCDIC
  175.  
  176.       Other character codes could be added in the future.
  177.  
  178.    Printer Control Codes
  179.  
  180.       The default settings are a print line of 72 characters and
  181.       a print page of 66 lines.
  182.  
  183.       Code X'D1
  184.  
  185.          Meaning:  Set line width to 72 characters.
  186.  
  187.       Code X'D2'
  188.  
  189.          Meaning:  Use the full width of your printer.
  190.  
  191.       Code X'D3'
  192.  
  193.          Meaning:  Set page size to 66 lines.
  194.  
  195.       Code X'D4'
  196.  
  197.          Meaning:  Set page size to infinite.
  198.  
  199.       Other virtual printer control codes can be added in the
  200.       future.
  201.  
  202.       Other classes of control codes can be added as the need
  203.       arises.
  204.  
  205.  
  206.  
  207.        [ This RFC was put into machine readable form for entry ]
  208.        [ into the online RFC archives by BBN Corp. under the   ]
  209.        [ direction of Alex McKenzie.                   12/96   ]
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217.                                                                 [Page 4]
  218.  
  219.