Skip to main content

End Command

Purpose of the End Command​

The purpose of the End command is to communicate that services of the off-loaded protocol are not required. The semantics of the End command depends upon whether it was issued by the Host or the OPE.

  • If the Host issues the End command, it means the process in the Host no longer requires the services of the offloaded protocol.

  • If the OPE issues the End command, it means the remote entity has no more data to send (e.g., the off-loaded protocol is TCP and the remote user has issued a TCP close).

Parameters of the End Command​

One parameter is associated with the End Command. It indicates whether the termination should be "graceful" or "abrupt" (see below).

Graceful/Abrupt​

The Graceful/Abrupt parameter indicates whether the End should be handled gracefully or abruptly. If it is handled gracefully, then data in transit is allowed to reach its destination before service is actually terminated. An abrupt End occurs immediately; all data transmitted from the Host but still pending in the OPE is discarded, and no new incoming data is sent to the Host from the OPE.

The parameter is indicated by a single ASCII character. The character "G" denotes graceful, and "A" denotes abrupt. The default value for this parameter is graceful.

Responses​

The following responses have been identified for the End command:

000    Command completed successfully
201 Command not appropriate
300 Problem with multiple chunks
301 Syntax problem with Command
302 Illegal Type of End Command
401 Protocol Interpreter in OPE not responding
402 Failure in remote protocol interpreter
403 Failed; insufficient protocol interpreter resources
501 Failed; insufficient OPE resources
601 Request violates security policy

Additionally, protocol idiosyncratic responses will be defined for each off-loaded protocol.

Example of End Command​

The syntax of the End command is relatively straightforward. It consists of a chunk that contains only a chunk usage identifier, the end command string, and the parameter indicating whether the end should be graceful or abrupt. A possible valid (abrupt) End command would be:

C EN A <nl>

Notes to the Implementor​

Once an End has been issued in a given direction any other commands on the channel in the same direction are in error and should be responded to appropriately.