This is incorrect, since we are working with an AP_PCDRL and we have already received an AP_ASSOC_IND and the ROSE protocol machine has not yet been enabled to convert it into a AP_RO_BIND_IND. Instead, the call to ap_ro_init() must be made before receiving any primitives, so that the correct conversion to the ROSE primitives can occur.
The following three changes correct the description for the three scenarios when ap_ro_init() can be called.
"#define AP_RO_NO_RESULT 3"
add the following:
"#define AP_RO_DIRECT_REF 4
#define AP_RO_INDIRECT_REF 5
#define AP_RO_DIR_AND_INDIR 6"
" /* values */"
add the following:
"long type; /* must be set to AP_RO_DIRECT_REF */
/* or AP_RO_ INDIRECT_REF */
/* or AP_RO_ DIR_AND_INDIR */
union {
unsigned long local; /* not valid for this primitive */
ap_objid_t global; /* valid if type==AP_RO_DIRECT_REF */
} value;
The global element of the cdata->value element is an ap_objid_t structure containing the contents octets of the BER encoding of the OBJECT IDENTIFIER. See the referenced XAP specification and ISO 8825-1, Basic Encoding Rules(BER) for details of how to use this structure."
"The cdata->type argument signals the type of encoding that is to be used to encode the AP_RO_BIND_RSP. If the cdata->type is set to AP_RO_DIRECT_REF the cdata->value.global will contain the object identifier that will be used for the encoding. If cdata->type set to AP_RO_INDIRECT_REF then the cdata->pci value will be used for the indirect-reference encoding. If cdata->type is set to
AP_RO_DIR_AND_INDIR then the cdata->value.global will contain the transfer syntax that will be used for the encoding and the cdata->pci will be used for the indirect-reference.
The global element of the cdata->value element is an ap_objid_t structure containing the contents octets of the BER encoding of the OBJECT IDENTIFIER. See the referenced XAP specification and ISO 8825-1, Basic Encoding Rules(BER) for details of how to use this structure."
The global element of the cdata->value element is an ap_objid_t structure containing the contents octets of the BER encoding of the OBJECT IDENTIFIER. See the referenced XAP specification and ISO 8825-1, Basic Encoding Rules(BER) for details of how to use this structure."
[AP_RO_BAD_PCI] The PCI is not in the AP_RO_PCI_LIST.
"/*
* The following are provider primitives..."
[These values are implementation-dependent and should not be defined here.]
insert the following line:
"#define AP_RO_GENERAL_TYPE 0"
"/*
* Primitive types
*/"
insert the following:
"/*
* Possible General problem types
*/
#define AP_RO_GEN_UNREC_PDU (0)
#define AP_RO_GEN_MISTYPED_PDU (1)
#define AP_RO_GEN_BAD_STRUCT_PDU (2)
/*
* Possible Invoke Problem types
*/
#define AP_RO_IN_DUP_INVOCATION (0)
#define AP_RO_IN_UNREC_OPERATION (1)
#define AP_RO_IN_MISTYPED_ARG (2)
#define AP_RO_IN_RESOURCE_LIMIT (3)
#define AP_RO_IN_RELEASE_IN_PROG (4)
#define AP_RO_IN_UNREC_LINKED_ID (5)
#define AP_RO_IN_LINKED_RESP_UNEXPECTED (6)
#define AP_RO_IN_UNEXPECTED_LINKED_OPER (7)
/*
* Possible Result problem types
*/
#define AP_RO_RES_UNREC_INVOCATION (0)
#define AP_RO_RES_RESULT_RESP_UNEXPECTED (1)
#define AP_RO_RES_MISTYPED_RESULT (2)
/*
* Possible Error problem types
*/
#define AP_RO_ER_UNREC_INVOCATION (0)
#define AP_RO_ER_ERROR_RESP_UNEXPECTED (1)
#define AP_RO_ER_UNREC_ERROR (2)
#define AP_RO_ER_UNEXPECTED_ERROR (3)
#define AP_RO_ER_MISTYPED_PARAM
through
"not finished with the association"
with:
"The cdata->res and cdata->rsn arguments should be set the same as they are for an AP_A_RELEASE_RSP. Reference this primitive in the XAP CAE specification for the correct settings."
"#define AP_RO_T_SYTX_NSUP..."
(2) In the ERROR sections on pages 33, 37, 41, 45, 50 and 54, add the following line:
If you can't find the information you need, please contact X/Open at any of its offices.
Copyright X/Open Company Limited, © 1995