Skip to main content

4. Order of Transactions

4A.​

A certain order of transactions must be maintained in fulfilling file transfer requests. The exact sequence in which transactions occur depends on the type of request, as described in section 4B. The fulfilling of a request may be aborted anytime by either host, as explained in section 4C.

4B.​

Identifier transactions (change data type, username, and password) may be sent by user at any time. The usual order would be a username transaction followed by a password transaction at the start of the connection. No acknowledge is required, or permitted. The identifiers are to be used for default handling, and access control.

Retrieve and list_file_directory requests cause the transfer of file from server to user. After a complete file has been transferred, the server should indicate end-of-file (by sending CLS or file separator) to complete the request fulfillment sequence, as shown below.

     Read / List_file_directory request
------------------------------------->
User <File -- data> Server
<-------------------------------------
End of file indication
<-------------------------------------

Store and append requests cause the transfer of file from user to server. After a complete file has been transferred, the user should send an end-of-file indication. The receipt of the file must be acknowledged by the server, as shown below.

User          Store / Append request        Server
------------------------------------->
<File -- data>
------------------------------------->
End of file indication
------------------------------------->
Acknowledge
<-------------------------------------

Rename_from request must be followed by a rename_to request. The request must be acknowledged as shown below.

User          Rename_from request           Server
------------------------------------->
Rename_to request
------------------------------------->
Acknowledge
<-------------------------------------

The delete request requires the server to acknowledge it, as shown below.

User              Delete                    Server
------------------------------------->
Acknowledge
<-------------------------------------

Error transactions may be sent by either host at any time, and these terminate the current request fulfillment sequence.

4C. Aborts​

Either host may abort a request fulfillment sequence at any time by sending an error terminate, or by closing the connection (NCP to transmit a CLS for the connection). CLS is a more drastic type of abort and shall be used when there is a catastrophic failure, or when abort is desired in the middle of a long transaction. The abort indicates to the receiving host that sender of abort wishes to terminate request fulfillment and is now ready to initiate or fulfill new requests. When CLS is used to abort, the using host will be responsible for reopening connection. The file transfer abort described here is different from the data transfer abort which is sent only by the sender of data. The use of the data transfer abort is not defined in this protocol.