1 | /* |
2 | |
3 | Derby - Class org.apache.derby.client.net.DssConstants |
4 | |
5 | Copyright (c) 2001, 2005 The Apache Software Foundation or its licensors, where applicable. |
6 | |
7 | Licensed under the Apache License, Version 2.0 (the "License"); |
8 | you may not use this file except in compliance with the License. |
9 | You may obtain a copy of the License at |
10 | |
11 | http://www.apache.org/licenses/LICENSE-2.0 |
12 | |
13 | Unless required by applicable law or agreed to in writing, software |
14 | distributed under the License is distributed on an "AS IS" BASIS, |
15 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
16 | See the License for the specific language governing permissions and |
17 | limitations under the License. |
18 | |
19 | */ |
20 | |
21 | package org.apache.derby.client.net; |
22 | |
23 | class DssConstants { |
24 | static final int MAX_DSS_LEN = 32767; |
25 | |
26 | // Registered SNA GDS identifier indicating DDM data (xD0 for DDM data). |
27 | static final int GDS_ID = 0xD0; |
28 | |
29 | // GDS chaining bits. |
30 | static final int GDSCHAIN = 0x40; |
31 | |
32 | // GDS chaining bits where next DSS has different correlation ID. |
33 | static final int GDSCHAIN_SAME_ID = 0x10; |
34 | |
35 | // GDS formatter for an Encrypted OBJDSS. |
36 | static final int GDSFMT_ENCOBJDSS = 0x04; |
37 | |
38 | // GDS formatter for an OBJDSS. |
39 | static final int GDSFMT_OBJDSS = 0x03; |
40 | |
41 | // GDS formatter for an RPYDSS. |
42 | static final int GDSFMT_RPYDSS = 0x02; |
43 | |
44 | // GDS formatter for an RQSDSS. |
45 | static final int GDSFMT_RQSDSS = 0x01; |
46 | |
47 | |
48 | // GDS formatter for an RQSDSS without a reply. |
49 | static final int GDSFMT_RQSDSS_NOREPLY = 0x05; |
50 | |
51 | static final byte RQST_CHN_DIFFCOR_CONT = (byte) 0x61; |
52 | static final byte RQST_CHN_DIFFCOR_NOCONT = (byte) 0x41; |
53 | static final byte RQST_CHN_SAMECOR_CONT = (byte) 0x71; |
54 | static final byte RQST_CHN_SAMECOR_NOCONT = (byte) 0x51; |
55 | static final byte RQST_NOCHN_CONT = (byte) 0x21; |
56 | static final byte RQST_NOCHN_NOCONT = (byte) 0x01; |
57 | |
58 | static final byte RPY_CHN_DIFFCOR_CONT = (byte) 0x62; |
59 | static final byte RPY_CHN_DIFFCOR_NOCONT = (byte) 0x42; |
60 | static final byte RPY_CHN_SAMECOR_CONT = (byte) 0x72; |
61 | static final byte RPY_CHN_SAMECOR_NOCONT = (byte) 0x52; |
62 | static final byte RPY_NOCHN_CONT = (byte) 0x22; |
63 | static final byte RPY_NOCHN_NOCONT = (byte) 0x02; |
64 | |
65 | // hide the default constructor |
66 | private DssConstants() { |
67 | } |
68 | } |