Commit | Line | Data |
---|---|---|
cf908fd1 WJ |
1 | -- rts.py - RTS definitions |
2 | -- lifted directly from ISO9066-2 | |
3 | ||
4 | -- $Header: /f/osi/rtsap/RCS/rts.py,v 7.2 91/02/22 09:42:35 mrose Interim $ | |
5 | -- | |
6 | -- | |
7 | -- $Log: rts.py,v $ | |
8 | -- Revision 7.2 91/02/22 09:42:35 mrose | |
9 | -- Interim 6.8 | |
10 | -- | |
11 | -- Revision 7.1 90/11/04 19:18:05 mrose | |
12 | -- update | |
13 | -- | |
14 | -- Revision 7.0 89/11/23 22:22:33 mrose | |
15 | -- Release 6.0 | |
16 | -- | |
17 | ||
18 | -- | |
19 | -- NOTICE | |
20 | -- | |
21 | -- Acquisition, use, and distribution of this module and related | |
22 | -- materials are subject to the restrictions of a license agreement. | |
23 | -- Consult the Preface in the User's Manual for the full terms of | |
24 | -- this agreement. | |
25 | -- | |
26 | -- | |
27 | ||
28 | ||
29 | --* Reliable-Transfer-APDUs *-- RTS | |
30 | --* { joint-iso-ccitt reliable-transfer(3) apdus(0) } *-- | |
31 | DEFINITIONS ::= | |
32 | ||
33 | %{ | |
34 | #ifndef lint | |
35 | static char *rcsid = "$Header: /f/osi/rtsap/RCS/rts.py,v 7.2 91/02/22 09:42:35 mrose Interim $"; | |
36 | #endif | |
37 | ||
38 | #include <stdio.h> | |
39 | #include "rtpkt.h" | |
40 | ||
41 | ||
42 | int rtsap_priority; | |
43 | ||
44 | /* \f */ | |
45 | %} | |
46 | ||
47 | BEGIN | |
48 | ||
49 | -- EXPORTS | |
50 | -- rTSE, rTSE-abstract,syntax, RTORQapdu, RTOACapdu, RTORJapdu, RTABapdu; | |
51 | ||
52 | -- IMPORTS APPLICATION-SERVICE-ELEMENT | |
53 | -- FROM RemoteOperations-Notation-extension | |
54 | -- { joint-ccitt-iso remote-operations(4) notation-extension(2) }; | |
55 | ||
56 | -- rTSE-abstract-syntax OBJECT IDENTIFIER ::= | |
57 | -- { joint-iso-ccit reliable-transfer(3) abstract-syntax(2) } | |
58 | -- rTSE APPLICATION-SERVICE-ELEMENT ::= | |
59 | -- { joint-iso-ccit reliable-transfer(3) aseID(1) } | |
60 | ||
61 | RTSE-apdus ::= | |
62 | CHOICE { | |
63 | rtorq-apdu[16] | |
64 | IMPLICIT RTORQapdu, | |
65 | ||
66 | rtoac-apdu[17] | |
67 | IMPLICIT RTOACapdu, | |
68 | ||
69 | rtorj-apdu[18] | |
70 | IMPLICIT RTORJapdu, | |
71 | ||
72 | rttp-apdu | |
73 | RTTPapdu, | |
74 | ||
75 | rttr-apdu | |
76 | RTTRapdu, | |
77 | ||
78 | rtab-apdu[22] | |
79 | IMPLICIT RTABapdu | |
80 | } | |
81 | ||
82 | -- Tags [19], [20], [21] are used by the values of the UNBIND macro of | |
83 | -- the RO-notation of ISO 9072-1. Tags [0] to [15] inclusive are | |
84 | -- reserved for the use by the APDUs of ROSE (ISO 9072-2). Any | |
85 | -- occurrence of ANY in this module shall be replaced by a single ASN.1 | |
86 | -- type (if any) in an RTSE-user protocol specification. In addition, | |
87 | -- any RTSE-user protocol sharing a single named abstract syntax with | |
88 | -- the RTSE protocol shall use distinct tags for the single presetnation | |
89 | -- data values in the user data paramters of the RT-CLOSE 9f any) and | |
90 | -- RT-TRANSFER services. These tags shall be distinct from the tag | |
91 | -- values [16], [17], [18] and [22] and from the ASN.1 types INTEGER and | |
92 | -- OCTET STRING. Note: the above conditions are ensured if the | |
93 | -- RTSE-user protocol specification uses the RO-ntation of ISO9072-1 | |
94 | ||
95 | -- In X.410-1984 mode only the components of the RTORQapdu, RTOACapdu, | |
96 | -- RTORJapdu and RTABapdu are used by the presentation layer. This has | |
97 | -- the effect that the following APDU types appear in the protocol in | |
98 | -- X.410-1984 mode instead of the alternate types of the RTSE-apdus type: | |
99 | -- RTORQapdu | |
100 | -- RTOACapdu | |
101 | -- RTORJapdu | |
102 | -- RTTPapdu | |
103 | -- RTTRapdu | |
104 | -- RTABapdu | |
105 | ||
106 | RTORQapdu ::= | |
107 | SET { | |
108 | checkpointSize[0] | |
109 | IMPLICIT INTEGER | |
110 | DEFAULT 0, | |
111 | ||
112 | windowSize[1] | |
113 | IMPLICIT INTEGER | |
114 | DEFAULT 3, | |
115 | ||
116 | dialogueMode[2] | |
117 | IMPLICIT INTEGER { monologue(0), twa(1)} | |
118 | DEFAULT monologue, | |
119 | ||
120 | connectionDataRQ[3] | |
121 | ConnectionData, | |
122 | ||
123 | applicationProtocol[4] | |
124 | IMPLICIT INTEGER | |
125 | OPTIONAL -- solely in X.410-1984 mode | |
126 | } | |
127 | ||
128 | RTOACapdu ::= | |
129 | SET { | |
130 | checkpointSize[0] | |
131 | IMPLICIT INTEGER | |
132 | DEFAULT 0, | |
133 | ||
134 | windowSize[1] | |
135 | IMPLICIT INTEGER | |
136 | DEFAULT 3, | |
137 | ||
138 | connectionDataAC[2] | |
139 | ConnectionData | |
140 | } | |
141 | ||
142 | RTORJapdu ::= | |
143 | SET { | |
144 | refuseReason[0] | |
145 | IMPLICIT OACS.RefuseReason | |
146 | OPTIONAL, -- only in X.410-1984 mode | |
147 | ||
148 | userDataRJ[1] | |
149 | ANY | |
150 | OPTIONAL -- RTSE user data, only in normal mode | |
151 | } | |
152 | ||
153 | RTTPapdu ::= | |
154 | -- priority | |
155 | INTEGER | |
156 | ||
157 | RTTRapdu ::= | |
158 | OCTET STRING | |
159 | ||
160 | RTABapdu ::= | |
161 | SET { | |
162 | abortReason[0] | |
163 | IMPLICIT AbortReason | |
164 | OPTIONAL, | |
165 | ||
166 | reflectedParameter[1] | |
167 | IMPLICIT BIT STRING | |
168 | OPTIONAL, | |
169 | -- 8 bits maximum, only if abortReason is invalidParameter | |
170 | ||
171 | userdataAB[2] | |
172 | ANY | |
173 | OPTIONAL | |
174 | -- only in normal mode and if if abortReason is userError | |
175 | } | |
176 | ||
177 | ConnectionData ::= | |
178 | CHOICE { | |
179 | open[0] -- RTSE user data | |
180 | -- this is encoded as [0]IMPLICIT NULL | |
181 | -- in the case of absence of RTSE user data | |
182 | ANY, | |
183 | ||
184 | recover[1] IMPLICIT SessionConnectionIdentifier | |
185 | } | |
186 | ||
187 | SessionConnectionIdentifier ::= | |
188 | SEQUENCE { | |
189 | CallingSSuserReference, | |
190 | ||
191 | CommonReference, | |
192 | ||
193 | [0] IMPLICIT AdditionalReferenceInformation OPTIONAL | |
194 | } | |
195 | ||
196 | -- RefuseReason in module OACS for hysterical (sic) reasons | |
197 | ||
198 | CallingSSuserReference ::= | |
199 | CHOICE { | |
200 | T61String, -- solely in X.410-1984 mode | |
201 | ||
202 | OCTET STRING -- solely in normal mode | |
203 | } | |
204 | ||
205 | CommonReference ::= | |
206 | UTCTime | |
207 | ||
208 | AdditionalReferenceInformation ::= | |
209 | T61String | |
210 | ||
211 | AbortReason ::= | |
212 | INTEGER { | |
213 | localSystemProblem(0), | |
214 | ||
215 | invalidParameter(1), -- reflectedParameter supplied | |
216 | ||
217 | unrecognizedActivity(2), | |
218 | ||
219 | temporaryProblem(3), -- the RTSE cannot accept a session | |
220 | -- for a period of time | |
221 | ||
222 | protocolError(4), -- RTSE level protocol error | |
223 | ||
224 | permanentProblem(5), -- provider-abort solely in normal mode | |
225 | ||
226 | userError(6), -- user-abort solely in normal mode | |
227 | ||
228 | transferCompleted(7) -- activity can't be discarded | |
229 | } | |
230 | END |