1 | Request variable | Input | Char(*) |
2 | Length of request variable | Input | Binary(4) |
3 | Format name of request variable | Input | Char(8) |
4 | Error code | I/O | Char(*) |
The Close Stream (QzdmCloseStream) API is used to close an OptiConnect stream. The Close Stream (QzdmCloseStream) API should be performed after the stream is no longer needed to free the system resources associated with the stream.
The following restrictions apply:
The request variable structure that describes the input for the Close Stream (QzdmCloseStream) API.
The length of the request variable, in bytes. The length of the request variable must be at least equal to the length of the input format, and less than or equal to the maximum length of 4KB.
The format of the information that is provided as input for the Close Stream (QzdmCloseStream) API. The CSTR0100 format is used by this API for the request variable. See CSTR0100 Format for more information on the CSTR0100 format.
The structure in which to return error information. For the format of the structure, see Error Code Parameter.
The following table defines the information required for Format CSTR0100.
Offset | Type | Field | |
---|---|---|---|
Dec | Hex | ||
0 | 0 | CHAR(16) | Stream identifier |
Stream identifier. The OptiConnect stream that is to be closed. This field is provided as output with the Open Stream (QzdmOpenStream) API.
Message ID | Error Message Text |
---|---|
CPF24B4 E | Severe error while addressing parameter list. |
CPF3C1D E | Length specified in parameter &1 not valid. |
CPF3C21 E | Format name &1 is not valid. |
CPF3C90 E | Literal value cannot be changed. |
CPF3CF1 E | Error code parameter not valid. |
CPF9872 E | Program or service program &1 in library &2 ended. Reason code &3. |
CPFADF0 E | The OptiConnect QSOC subsystem must be active. |
CPFADF1 E | OptiConnect communication error. |
CPFADF5 E | OptiConnect API internal error, function code &1, return code &2. |
CPFADF6 E | Request variable not valid, reason code &1. |
Top | Communications APIs | APIs by category |