OSI/AS Programming Manual
Example 2: Presentation Layer and ACSE
Sample Programs
056783 Tandem Computers Incorporated E–57
, (int *) &remote_appl
, (int *) &session_rqmnts
, /* conid */
, (int *) &user_data
, /* tag */
, service_id
, mode
, (int *) &pres_context_list
, /* pres-default-context-name */
, (int *) &acse_appl_context_name
, /* acse-local-ae-title */
, /* acse-remote-ae-title */
, /* acse-local-invocation-ids */
, /* acse-remote-invocation-ids */
);
if ( status != ZAPS_VAL_STATUS_OK )
display_aps_status( error_connectreq_proc );
/* */
/* Get and save OSI address information. */
/* */
error =
APS_ASSOC_GETPARAM_( cepi
, /* conid */
, (int *) &local_appl
, (int *) &remote_appl
, /* connect-result */
, /* session-rqmnts */
, /* release-result */
, /* abort-reason */
, /* mode */
, /* pres-context-list */
, /* pres-context-result-list */
, /* pres-default-context-name */
, /* pres-default-context-result */
, /* acse-appl-context-name */
, (int *) &acse_local_ae_title
, (int *) &acse_remote_ae_title
, /* acse-local-invocation-ids */
, /* acse-remote-invocation-ids */
, /* acse-result-source */
, /* acse-diagnostic */
, /* acse-release-reason */
, /* acse-abort-source */
);
if ( error != ZAPS_ERR_OK )
display_aps_error( error_assoc_getparam_proc );
/* */
/* Wait for ACSE associate confirm. */
/* */
wait_for_event( ZAPS_VAL_EVT_CONNECT_CNF );
/* */
/* Get the parameters of the associate confirm. */
/* */