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

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7. Network Working Group                             25 January 1972
  8. RFC 294                                        Abhay Bhushan, MIT
  9. NIC 8304
  10. Categories: D.4, D.5, and D.7
  11. Updates: RFC 265
  12.  
  13.  
  14. The Use of 'Set Data Type' Transaction in File Transfer Protocol
  15. ----------------------------------------------------------------
  16.  
  17.  
  18.     As mentioned in RFC 265, the opcode of '00' is set aside for the
  19. clarify the use of 'set data type' in file transfer operations.
  20.  
  21.  
  22.     In many systems such as Multics at MIT, there is no provision to
  23. identify the type of data (i.e., ASCII or numeric) stored in files.
  24. The manner in which the data is handled is context dependent.  ASCII
  25. characters are stored as four 9-bit characters per 36-bit word, right
  26. justified with left most bit as zero.  As efficient conversion
  27. programs exists in Multics for conversion of data from Multics' ASCII
  28. into Network ASCII, it would be useful for a user to be able to
  29. instruct the Multics server to convert data into Network ASCII in
  30. retrieve operations.  It is suggested that the 'set data type'
  31. transaction be used for this purpose.
  32.  
  33.  
  34.     The 'set data type' transaction preceding a retrieve request
  35. should be interpreted by a server to mean that the user wants to
  36. receive his data in that form.  If the server is unable to convert the
  37. data into the desired form, it should return a 'set data type' of
  38.  
  39.  
  40.        [ This RFC was put into machine readable form for entry ]
  41.        [ into the online RFC archives by BBN Corp. under the   ]
  42.        [ direction of Alex McKenzie.                   12/96   ]
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.                                                                 [Page 1]
  59.  
  60. Network Working Group                             25 January 1972
  61. RFC 294                                        Abhay Bhushan, MIT
  62.  
  63.     The following examples should clarify the use of 'set data
  64. type' transactions.
  65.  
  66. 1.        USER                                             SERVER
  67.           ----                                             ------
  68.                     Set data type '02' (Network ASCII)
  69.                     ------------------------------------->
  70.                     Store File X
  71.                     ------------------------------------->
  72.                     File X (in Network ASCII)
  73.                     ------------------------------------->
  74.                     End of File
  75.                     ------------------------------------->
  76.                     Acknowledge
  77.                     <-------------------------------------
  78.  
  79.                     Retrieve File X
  80.                     ------------------------------------->
  81.                     File X in Network ASCII
  82.                     <-------------------------------------
  83.                     End of File
  84.                     <-------------------------------------
  85.  
  86. 2.        USER                                             SERVER
  87.           ----                                             ------
  88.                     Set data type'03' (EBCDIC)
  89.                     ------------------------------------->
  90.                     Retrieve File Y
  91.                     ------------------------------------->
  92.                     Set data type '00' ("bit-stream")
  93.                     <-------------------------------------
  94.                     File Y as stored (no conversion)
  95.                     <-------------------------------------
  96.                     End of File
  97.                     <-------------------------------------
  98.  
  99.                     Set data type '02' (Network ASCII)
  100.                     ------------------------------------->
  101.                     Retrieve File Z
  102.                     ------------------------------------->
  103.                     File Z in Network ASCII
  104.                     <-------------------------------------
  105.                     End of File
  106.                     <-------------------------------------
  107.  
  108.  
  109.  
  110.  
  111.                                                                 [Page 2]
  112.  
  113.