01: /*
02:
03: Derby - Class org.apache.derby.impl.drda.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.impl.drda;
23:
24: /**
25: This class defines DSS constants that are shared in the classes implementing
26: the DRDA protocol.
27: */
28: class DssConstants {
29:
30: protected static final int MAX_DSS_LENGTH = 32767;
31:
32: // Registered DSS identifier indicating DDM data (xD0 for DDM data).
33: protected static final int DSS_ID = 0xD0;
34:
35: // DSS chaining bit.
36: protected static final int DSS_NOCHAIN = 0x00;
37: protected static final int DSSCHAIN = 0x40;
38:
39: // DSS chaining bit for continuation on error
40: protected static final int DSSCHAIN_ERROR_CONTINUE = 0x20;
41:
42: // DSS chaining bit where next DSS has same correlation ID.
43: protected static final int DSSCHAIN_SAME_ID = 0x50;
44:
45: // DSS formatter for an OBJDSS.
46: protected static final int DSSFMT_OBJDSS = 0x03;
47:
48: // DSS formatter for an RPYDSS.
49: protected static final int DSSFMT_RPYDSS = 0x02;
50:
51: // DSSformatter for an RQSDSS.
52: protected static final int DSSFMT_RQSDSS = 0x01;
53:
54: // DSS request correlation id unknown value
55: protected static final int CORRELATION_ID_UNKNOWN = -1;
56:
57: // DSS length continuation bit
58: protected static final int CONTINUATION_BIT = 0x8000;
59:
60: // Registered SNA GDS identifier indicating DDM data (xD0 for DDM data).
61: static final int GDS_ID = 0xD0;
62:
63: // GDS chaining bits.
64: static final int GDSCHAIN = 0x40;
65:
66: // GDS chaining bits where next DSS has different correlation ID.
67: static final int GDSCHAIN_SAME_ID = 0x50;
68:
69: // GDS formatter for an OBJDSS.
70: static final int GDSFMT_OBJDSS = 0x03;
71:
72: // GDS formatter for an RPYDSS.
73: static final int GDSFMT_RPYDSS = 0x02;
74:
75: // GDS formatter for an RQSDSS.
76: static final int GDSFMT_RQSDSS = 0x01;
77:
78: // hide the default constructor
79: private DssConstants() {
80: }
81: }
|