📄 rfc294.txt
字号:
Network Working Group 25 January 1972RFC 294 Abhay Bhushan, MITNIC 8304Categories: D.4, D.5, and D.7Updates: RFC 265The Use of 'Set Data Type' Transaction in File Transfer Protocol---------------------------------------------------------------- As mentioned in RFC 265, the opcode of '00' is set aside for theclarify the use of 'set data type' in file transfer operations. In many systems such as Multics at MIT, there is no provision toidentify the type of data (i.e., ASCII or numeric) stored in files.The manner in which the data is handled is context dependent. ASCIIcharacters are stored as four 9-bit characters per 36-bit word, rightjustified with left most bit as zero. As efficient conversionprograms exists in Multics for conversion of data from Multics' ASCIIinto Network ASCII, it would be useful for a user to be able toinstruct the Multics server to convert data into Network ASCII inretrieve operations. It is suggested that the 'set data type'transaction be used for this purpose. The 'set data type' transaction preceding a retrieve requestshould be interpreted by a server to mean that the user wants toreceive his data in that form. If the server is unable to convert thedata into the desired form, it should return a 'set data type' of [ This RFC was put into machine readable form for entry ] [ into the online RFC archives by BBN Corp. under the ] [ direction of Alex McKenzie. 12/96 ] [Page 1]Network Working Group 25 January 1972RFC 294 Abhay Bhushan, MIT The following examples should clarify the use of 'set datatype' transactions.1. USER SERVER ---- ------ Set data type '02' (Network ASCII) -------------------------------------> Store File X -------------------------------------> File X (in Network ASCII) -------------------------------------> End of File -------------------------------------> Acknowledge <------------------------------------- Retrieve File X -------------------------------------> File X in Network ASCII <------------------------------------- End of File <-------------------------------------2. USER SERVER ---- ------ Set data type'03' (EBCDIC) -------------------------------------> Retrieve File Y -------------------------------------> Set data type '00' ("bit-stream") <------------------------------------- File Y as stored (no conversion) <------------------------------------- End of File <------------------------------------- Set data type '02' (Network ASCII) -------------------------------------> Retrieve File Z -------------------------------------> File Z in Network ASCII <------------------------------------- End of File <------------------------------------- [Page 2]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -