/********************************************************************************************************************************/ /* Created: 12-JUN-2006 19:59:39 by OpenVMS SDL EV1-69 */ /* Source: 17-MAY-1996 16:01:49 $2$DUA315:[OSAK.V30_I64_BUILDS.VT.TEMP.SRC]OSAK */ /********************************************************************************************************************************/ /*** MODULE OSAK_API_CODES IDENT V3.0-0 ***/ #pragma __member_alignment __save #pragma __nomember_alignment /* */ /* Copyright Digital Equipment Corporation 1985,1995. All rights reserved. */ /* */ /* Restricted Rights: Use, duplication, or disclosure by the U.S. Government */ /* is subject to restrictions as set forth in subparagraph (c) (1) (ii) of */ /* DFARS 252.227-7013, or in FAR 52.227-19, or in FAR 52.227-14 Alt. III, as */ /* applicable. */ /* */ /* This software is proprietary to and embodies the confidential technology */ /* of Digital Equipment Corporation. Possession, use, or copying of this */ /* software and media is authorized only pursuant to a valid written license */ /* from Digital or an authorised sublicensor. */ /* */ /*++ */ /* */ /* FACILITY: OSI Applications Kernel (OSAK) */ /* */ /* ABSTRACT: This file defines the data structures and literal values */ /* used as inputs to OSAK. */ /* */ /*-- */ /* */ /* Codes for events */ /* */ #define OSAK_C_ASSOC_IND 100 /* A-ASSOCIATE indication */ #define OSAK_C_ACCEPT_CNF 101 /* A-ASSOCIATE-ACCEPT confirm */ #define OSAK_C_REJECT_CNF 102 /* A-ASSOCIATE-REJECT confirm */ #define OSAK_C_RELEASE_IND 103 /* A-RELEASE indication */ #define OSAK_C_RELEASE_CNF 104 /* A-RELEASE confirm */ #define OSAK_C_DATA_IND 105 /* P-DATA indication */ #define OSAK_C_ACT_START_IND 106 /* P-ACTIVITY-START indication */ #define OSAK_C_ACT_END_IND 107 /* P-ACTIVITY-END indication */ #define OSAK_C_ACT_END_CNF 108 /* P-ACTIVITY-END confirm */ #define OSAK_C_SYNC_MINOR_IND 109 /* P-SYNC-MINOR indication */ #define OSAK_C_SYNC_MINOR_CNF 110 /* P-SYNC-MINOR confirm */ #define OSAK_C_ACT_INTERRUPT_IND 111 /* P-ACTIVITY-INTERRUPT indication */ #define OSAK_C_ACT_INTERRUPT_CNF 112 /* P-ACTIVITY-INTERRUPT confirm */ #define OSAK_C_ABORT_IND 113 /* ABORT indication */ #define OSAK_C_ACT_DISCARD_IND 114 /* P-ACTIVITY-DISCARD indication */ #define OSAK_C_ACT_DISCARD_CNF 115 /* P-ACTIVITY-DISCARD confirm */ #define OSAK_C_ACT_RESUME_IND 116 /* P-ACTIVITY-RESUME indication */ #define OSAK_C_EXCEPTION_IND 117 /* P-U-EXCEPTION-REPORT indication */ #define OSAK_C_P_EXCEPTION_IND 118 /* P-P-EXCEPTION-REPORT indication */ #define OSAK_C_EXPEDITED_DATA_IND 119 /* P-EXPEDITED-DATA indication */ #define OSAK_C_CAPABILITY_IND 120 /* P-CAPABILITY-DATA indication */ #define OSAK_C_CAPABILITY_CNF 121 /* P-CAPABILITY-DATA confirm */ #define OSAK_C_CONTROL_GIVE_IND 122 /* P-CONTROL-GIVE indication */ #define OSAK_C_PLEASE_IND 123 /* P-TOKEN-PLEASE indication */ #define OSAK_C_TOKEN_GIVE_IND 124 /* P-TOKEN-GIVE indication */ #define OSAK_C_SYNC_MAJOR_IND 125 /* P-SYNC-MAJOR indication */ #define OSAK_C_SYNC_MAJOR_CNF 126 /* P-SYNC-MAJOR confirm */ #define OSAK_C_ALTER_CONTEXT_IND 127 /* P-ALTER-CONTEXT indication */ #define OSAK_C_ALTER_CONTEXT_CNF 128 /* P-ALTER-CONTEXT confirm */ #define OSAK_C_RESYNC_IND 129 /* P-RESYNCHRONIZE indication */ #define OSAK_C_RESYNC_CNF 130 /* P-RESYNCHRONIZE confirm */ #define OSAK_C_TYPED_DATA_IND 131 /* P-TYPED-DATA indication */ #define OSAK_C_REDIRECT_IND 132 /* REDIRECT indication */ #define OSAK_C_CONTINUE 133 /* continuation of previous event */ #define OSAK_C_NO_EVENT 134 /* No event returned */ #define OSAK_C_TDIS 135 /* Transport Disconnect */ /* */ /* Codes for services */ /* */ #define OSAK_C_OPENINITIATOR 1000 /* open initiator */ #define OSAK_C_OPENRESPONDER 1001 /* open responder */ #define OSAK_C_ASSOC_REQUEST 1002 /* associate request */ #define OSAK_C_ACC_RESPONSE 1003 /* associate accept response */ #define OSAK_C_REJ_RESPONSE 1004 /* associate reject response */ #define OSAK_C_SENDMORE 1005 /* send more */ #define OSAK_C_RELEASE_REQUEST 1006 /* release request */ #define OSAK_C_RELEASE_RESPONSE 1007 /* release response */ #define OSAK_C_DATA_REQUEST 1008 /* data request */ #define OSAK_C_TYPED_DATA_REQUEST 1009 /* typed data request */ #define OSAK_C_START_REQUEST 1010 /* activity start request */ #define OSAK_C_END_REQUEST 1011 /* activity end request */ #define OSAK_C_END_RESPONSE 1012 /* activity end response */ #define OSAK_C_SYNC_MINOR_REQUEST 1013 /* synchronize minor request */ #define OSAK_C_SYNC_MINOR_RESPONSE 1014 /* synchronize minor response */ #define OSAK_C_INTERRUPT_REQUEST 1015 /* activity interrupt request */ #define OSAK_C_INTERRUPT_RESPONSE 1016 /* activity interrupt response */ #define OSAK_C_DISCARD_REQUEST 1017 /* activity discard request */ #define OSAK_C_DISCARD_RESPONSE 1018 /* activity discard response */ #define OSAK_C_RESUME_REQUEST 1019 /* activity resume request */ #define OSAK_C_EXCEPTION_REQUEST 1020 /* exception request */ #define OSAK_C_EXPEDITED_DATA_REQUEST 1021 /* expedited data request */ #define OSAK_C_CAPABILITY_REQUEST 1022 /* capability data request */ #define OSAK_C_CAPABILITY_RESPONSE 1023 /* capability data response */ #define OSAK_C_PLEASE_REQUEST 1024 /* token please request */ #define OSAK_C_TOKEN_GIVE_REQUEST 1025 /* token give request */ #define OSAK_C_CONTROL_GIVE_REQUEST 1026 /* control give request */ #define OSAK_C_SYNC_MAJOR_REQUEST 1027 /* synchronize major request */ #define OSAK_C_SYNC_MAJOR_RESPONSE 1028 /* synchronize major response */ #define OSAK_C_ABORT_REQUEST 1029 /* abort request */ #define OSAK_C_ALTER_CONTEXT_REQUEST 1030 /* alter context request */ #define OSAK_C_ALTER_CONTEXT_RESPONSE 1031 /* alter context response */ #define OSAK_C_RESYNC_REQUEST 1032 /* resynchronize request */ #define OSAK_C_RESYNC_RESPONSE 1033 /* resynchronize response */ #define OSAK_C_OPENREDIRECT 1034 /* open redirect */ #define OSAK_C_REDIRECT 1035 /* redirect */ #define OSAK_C_GET_EVENT 1036 /* get_event */ /* */ /* constants */ /* */ #define OSAK_C_MINIMUM_RCV_BUFFER 512 /* minimum user buffer size */ #define OSAK_C_MINIMUM_WS 512 /* minimum work space size */ /* */ /* Associate reject response reason codes */ /* */ /* User reject codes */ /* */ #define OSAK_C_REJ_NULL 0 /* Null */ #define OSAK_C_REJ_NOREASON 1 /* No reason given */ #define OSAK_C_REJ_UNSUPPORTED_ACNAME 2 /* Application context name not supported */ #define OSAK_C_REJ_UNKCALLING_AP_TITLE 3 /* calling AP title not recognized */ #define OSAK_C_REJ_UNKCALLING_AP_ID 4 /* calling AP invocation id not recognized */ #define OSAK_C_REJ_UNKCALLING_AE_QUAL 5 /* calling AE qualifier not recognized */ #define OSAK_C_REJ_UNKCALLING_AEINV_ID 6 /* calling AE invocation id not recognized */ #define OSAK_C_REJ_UNKCALLED_AP_TITLE 7 /* called AP title not recognized */ #define OSAK_C_REJ_UNKCALLED_AP_ID 8 /* called AP invocation id not recognized */ #define OSAK_C_REJ_UNKCALLED_AE_QUAL 9 /* called AE qualifier not recognized */ #define OSAK_C_REJ_UNKCALLED_AEINV_ID 10 /* called AE invocation id not recognized */ /* */ /* Provider reject codes */ /* */ #define OSAK_C_REJ_P_NULL 11 /* Null */ #define OSAK_C_REJ_P_NOREASON 12 /* No reason given */ #define OSAK_C_REJ_P_ACSE_VERSION 13 /* No common ACSE version */ /* */ /* Presentation provider reject codes (ACSE Provider NULL) */ /* */ #define OSAK_C_REJ_PP_PEER_REFUSED 14 /* Not specified */ #define OSAK_C_REJ_PP_CONGESTED 15 /* PPM Congested (transient reject) */ #define OSAK_C_REJ_PP_ADDRESS_UNKNOWN 16 /* P-Address unknown */ #define OSAK_C_REJ_PP_UNSUPPORTED 17 /* Protocol version not supported */ #define OSAK_C_REJ_PP_NO_DEFAULT 18 /* Default context not supported */ #define OSAK_C_REJ_PP_NOT_READABLE 19 /* User data not readable */ #define OSAK_C_REJ_PP_NO_PSAP_AVAIL 20 /* No PSAP available */ #define OSAK_C_REJ_PP_LOCAL_LIMIT 21 /* Local limit exceeded */ /* */ /* Session provider reject codes (ACSE Provider NULL) */ /* */ #define OSAK_C_REJ_SP_NO_SUCH_SSAP 22 /* No such SSAP */ #define OSAK_C_REJ_SP_NO_USER 23 /* SS user not attached to SSAP */ #define OSAK_C_REJ_SP_CONGESTED 24 /* SPM Congested (transient reject) */ #define OSAK_C_REJ_SP_UNSUPPORTED 25 /* Protocol version not supported */ #define OSAK_C_REJ_SP_REFUSED 26 /* Rejection by SPM */ #define OSAK_C_REJ_SP_NO_REASON 27 /* No reason */ #define OSAK_C_REJ_SP_USER_CONGESTED 28 /* Session User Congested */ #define OSAK_C_REJ_SP_USER_REASON 29 /* Session User Reason */ #define OSAK_C_REJ_SP_SPM_RESTRICTION 30 /* PICS Restriction */ /* */ /* Activity interrupt/discard reason codes */ /* */ #define OSAK_C_ACTIVITY_NOTSPECIFIED 0 /* no specific reason stated */ #define OSAK_C_ACTIVITY_CANTCONTINUE 1 /* temporarily unable to continue */ #define OSAK_C_ACTIVITY_SEQUENCE 2 /* user sequence error */ #define OSAK_C_ACTIVITY_USER 3 /* local ss-user error */ #define OSAK_C_ACTIVITY_PROCEDURAL 4 /* unrecoverable procedural error */ #define OSAK_C_ACTIVITY_DEMAND 5 /* demand data token */ /* */ /* Presentation user exception reasons */ /* */ #define OSAK_C_EXCEPTION_NOTSPECIFIED 0 /* No specific reason stated */ #define OSAK_C_EXCEPTION_CANTCONTINUE 1 /* Temporarily unable to contine */ #define OSAK_C_EXCEPTION_SEQUENCE 2 /* User sequence error */ #define OSAK_C_EXCEPTION_USER 3 /* Local SS-user error */ #define OSAK_C_EXCEPTION_PROCEDURAL 4 /* Unrecoverable procedural error */ #define OSAK_C_EXCEPTION_DEMAND 5 /* Demand data token */ /* */ /* Presentation provider exception reason */ /* */ #define OSAK_C_EXCEPTION_BADPROT 6 /* Session protocol error */ /* */ /* Abort Reasons */ /* */ /* The only reasons that can be issued by calling osak_abort_req are: */ /* OSAK_C_PP_ABORT_NOTSPECIFIED, */ /* OSAK_C_PP_ABORT_INVALID_VALUE, */ /* OSAK_C_ABORT_ACSE_USER */ /* */ /* Presentation Provider Abort reasons */ /* */ #define OSAK_C_PP_ABORT_NOTSPECIFIED 0 /* Reason not specified */ #define OSAK_C_PP_ABORT_UNREC_PPDU 1 /* Unrecognized PPDU */ #define OSAK_C_PP_ABORT_UNEXP_PPDU 2 /* Unexpected PPDU */ #define OSAK_C_PP_ABORT_UNEXP_SS 3 /* Unexpected SS primitive */ #define OSAK_C_PP_ABORT_UNREC_PARAM 4 /* Unrecognized PPDU parameter */ #define OSAK_C_PP_ABORT_UNEXP_PARAM 5 /* Unexpected PPDU parameter */ #define OSAK_C_PP_ABORT_INVALID_VALUE 6 /* Invalid PPDU parameter value */ /* */ /* Session Provider Abort reasons */ /* */ #define OSAK_C_SP_ABORT_BADPROT 100 /* Bad protocol */ #define OSAK_C_SP_ABORT_UNKNOWNERR 101 /* Unknown error */ /* */ /* Other abort reasons */ /* */ #define OSAK_C_ABORT_ACSE_USER 7 /* ACSE user abort */ #define OSAK_C_ABORT_ACSE_PROVIDER 8 /* ACSE provider abort */ #define OSAK_C_ABORT_DISCONNECT 9 /* Transport connection lost */ /* */ /* Presentation abort identifier codes */ /* PPDU identifier codes for event identifier as seen in ARP PPDU */ /* */ #define OSAK_C_ABORT_PPDU_CP 0 /* cp-PPDU */ #define OSAK_C_ABORT_PPDU_CPA 1 /* cpa-PPDU */ #define OSAK_C_ABORT_PPDU_CPR 2 /* cpr-PPDU */ #define OSAK_C_ABORT_PPDU_ARU 3 /* aru-PPDU */ #define OSAK_C_ABORT_PPDU_ARP 4 /* arp-PPDU */ #define OSAK_C_ABORT_PPDU_AC 5 /* ac-PPDU */ #define OSAK_C_ABORT_PPDU_ACA 6 /* aca-PPDU */ #define OSAK_C_ABORT_PPDU_TD 7 /* td-PPDU */ #define OSAK_C_ABORT_PPDU_TTD 8 /* ttd-PPDU */ #define OSAK_C_ABORT_PPDU_TE 9 /* te-PPDU */ #define OSAK_C_ABORT_PPDU_TC 10 /* tc-PPDU */ #define OSAK_C_ABORT_PPDU_TCC 11 /* tcc-PPDU */ #define OSAK_C_ABORT_PPDU_RS 12 /* rs-PPDU */ #define OSAK_C_ABORT_PPDU_RSA 13 /* rsa-PPDU */ #define OSAK_C_ABORT_PPDU_SREL_IND 14 /* s-release-indication */ #define OSAK_C_ABORT_PPDU_SREL_CNF 15 /* s-release-confirm */ #define OSAK_C_ABORT_PPDU_SGT_IND 16 /* s-token-give-indication */ #define OSAK_C_ABORT_PPDU_SPT_IND 17 /* s-token-please-indication */ #define OSAK_C_ABORT_PPDU_SCG_IND 18 /* s-control-give-indication */ #define OSAK_C_ABORT_PPDU_SSYNMIN_IND 19 /* s-sync-minor-indication */ #define OSAK_C_ABORT_PPDU_SSYNMIN_CNF 20 /* s-sync-minor-confirm */ #define OSAK_C_ABORT_PPDU_SSYNMAJ_IND 21 /* s-sync-major-indication */ #define OSAK_C_ABORT_PPDU_SSYNMAJ_CNF 22 /* s-sync-major-confirm */ #define OSAK_C_ABORT_PPDU_SPER_IND 23 /* s-p-exception-report-indication */ #define OSAK_C_ABORT_PPDU_SUER_IND 24 /* s-u-exception-report-indication */ #define OSAK_C_ABORT_PPDU_SACTS_IND 25 /* s-activity-start-indication */ #define OSAK_C_ABORT_PPDU_SACTR_IND 26 /* s-activity-resume-indication */ #define OSAK_C_ABORT_PPDU_SACTI_IND 27 /* s-activity-interrupt-indication */ #define OSAK_C_ABORT_PPDU_SACTI_CNF 28 /* s-activity-interrupt-confirm */ #define OSAK_C_ABORT_PPDU_SACTD_IND 29 /* s-activity-discard-indication */ #define OSAK_C_ABORT_PPDU_SACTD_CNF 30 /* s-activity-discard-confirm */ #define OSAK_C_ABORT_PPDU_SACTE_IND 31 /* s-activity-end-indication */ #define OSAK_C_ABORT_PPDU_SACTE_CNF 32 /* s-activity-end-confirm */ #define OSAK_C_ABORT_PPDU_NOTSPECIFIED 33 /* Abort PPDU not specified */ /* */ /* Resynchronozation types */ /* */ #define OSAK_C_RESYNC_ABANDON 0 /* Start */ #define OSAK_C_RESYNC_RESTART 1 /* Restart */ #define OSAK_C_RESYNC_SET 2 /* Set */ /* 036 */ /* */ /* Result */ /* */ #define OSAK_C_ACCEPT 0 /* Accept */ #define OSAK_C_REJECT 1 /* Reject */ #define OSAK_C_USER_REJECT 1 /* User reject */ #define OSAK_C_PROV_REJECT 2 /* Provider reject */ /* */ /* Provider reason in Result-list */ /* */ #define OSAK_C_PREASON_NOTSPECIFIED 0 /* Reason not specified */ #define OSAK_C_PREASON_UNSUPP_ABS 1 /* Abstact syntax not supported *036 */ #define OSAK_C_PREASON_UNSUPP_TRANS 2 /* proposed transfer syntaxes not supported *036 */ #define OSAK_C_PREASON_DCS_LIMIT 3 /* local limit on DCS exceeded */ /* */ /* Release Request Reason */ /* */ #define OSAK_C_RLRQ_NORMAL 0 /* Normal */ #define OSAK_C_RLRQ_URGENT 1 /* Urgent */ #define OSAK_C_RLRQ_USERDEF 30 /* User defined */ /* */ /* Release Response Reason */ /* */ #define OSAK_C_RLRE_NORMAL 0 /* Normal */ #define OSAK_C_RLRE_NOTFINISHED 1 /* Not finished */ #define OSAK_C_RLRE_USERDEF 30 /* USer defined */ /* */ /* Event mask bit settings for osak_select */ /* */ #define OSAK_C_READEVENT 1 /* Read (inbound) event */ #define OSAK_C_WRITEEVENT 2 /* Write (outbound) event */ /* */ /* Token assignement */ /* */ #define OSAK_C_TOKEN_INIT 0 /* Initiator */ #define OSAK_C_TOKEN_RESP 1 /* Responder */ #define OSAK_C_TOKEN_CHOOSE 2 /* Responder's choice */ /* */ /* Redirect states */ /* */ #define OSAK_C_PARTIAL_ASSOC_IND 0 /* Partial associate indication */ #define OSAK_C_ASSOCIATE_IND 1 /* Associate indication */ #define OSAK_C_DATA_TRANSFER 2 /* Data tranfer */ /* */ /* Network type */ /* */ #define OSAK_C_CLNS 1 /* Connectionless network */ #define OSAK_C_CONS 2 /* Connection-oriented network */ #define OSAK_C_RFC1006 3 /* RFC 1006 */ #define OSAK_C_UNKNOWN 4 /* Unknown network type */ #define OSAK_C_UNSPECIFIED 5 /* Unspecified network type */ /* */ /* Macros for destructive and non-destructive osak_close_port */ /* */ #define OSAK_C_NON_DESTRUCTIVE 0 /* Non destructive close port */ #define OSAK_C_DESTRUCTIVE 1 /* Destructive close port */ /* */ /* Transport Characteristics */ /* */ #define OSAK_C_TRANS_DEFAULT 0 /* Use default value */ /* */ /* Transport Class */ /* */ #define OSAK_C_TRANS_CLASS_0 1 /* Transport class 0 */ #define OSAK_C_TRANS_CLASS_2 2 /* Transport class 2 */ #define OSAK_C_TRANS_CLASS_4 3 /* Transport class 4 */ /* */ /* Transport Expedited */ /* */ #define OSAK_C_TRANS_EXPEDITED_ON 1 /* Negotiate use of transport expedited */ #define OSAK_C_TRANS_EXPEDITED_OFF 2 /* Do not use transport expedited */ /* */ /* Checksums */ /* */ #define OSAK_C_TRANS_CHECKSUMS_ON 1 /* Use checksums */ #define OSAK_C_TRANS_CHECKSUMS_OFF 2 /* Negotiate non-use of checksums */ /* */ /* Extended Format Edit 005 on 17-May-96 */ /* */ #define OSAK_C_TRANS_EXTFORM_ON 1 /* Use extended format */ #define OSAK_C_TRANS_EXTFORM_OFF 2 /* Not use extended format */ /* */ /* Supported API versions */ /* */ #define OSAK_C_API_VERSION_3 3 /* OSAK V3.0 */ #pragma __member_alignment __restore