01: /*
02:
03: Derby - Class org.apache.derby.client.net.DssConstants
04:
05: Licensed to the Apache Software Foundation (ASF) under one or more
06: contributor license agreements. See the NOTICE file distributed with
07: this work for additional information regarding copyright ownership.
08: The ASF licenses this file to You under the Apache License, Version 2.0
09: (the "License"); you may not use this file except in compliance with
10: the License. You may obtain a copy of the License at
11:
12: http://www.apache.org/licenses/LICENSE-2.0
13:
14: Unless required by applicable law or agreed to in writing, software
15: distributed under the License is distributed on an "AS IS" BASIS,
16: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17: See the License for the specific language governing permissions and
18: limitations under the License.
19:
20: */
21:
22: package org.apache.derby.client.net;
23:
24: class DssConstants {
25: static final int MAX_DSS_LEN = 32767;
26:
27: // Registered SNA GDS identifier indicating DDM data (xD0 for DDM data).
28: static final int GDS_ID = 0xD0;
29:
30: // GDS chaining bits.
31: static final int GDSCHAIN = 0x40;
32:
33: // GDS chaining bits where next DSS has different correlation ID.
34: static final int GDSCHAIN_SAME_ID = 0x10;
35:
36: // GDS formatter for an Encrypted OBJDSS.
37: static final int GDSFMT_ENCOBJDSS = 0x04;
38:
39: // GDS formatter for an OBJDSS.
40: static final int GDSFMT_OBJDSS = 0x03;
41:
42: // GDS formatter for an RPYDSS.
43: static final int GDSFMT_RPYDSS = 0x02;
44:
45: // GDS formatter for an RQSDSS.
46: static final int GDSFMT_RQSDSS = 0x01;
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: }
|