--- /dev/null
+/*\r
+\r
+ Derby - Class org.apache.derby.impl.drda.DssConstants\r
+\r
+ Licensed to the Apache Software Foundation (ASF) under one or more\r
+ contributor license agreements. See the NOTICE file distributed with\r
+ this work for additional information regarding copyright ownership.\r
+ The ASF licenses this file to You under the Apache License, Version 2.0\r
+ (the "License"); you may not use this file except in compliance with\r
+ the License. You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+ Unless required by applicable law or agreed to in writing, software\r
+ distributed under the License is distributed on an "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ See the License for the specific language governing permissions and\r
+ limitations under the License.\r
+\r
+ */\r
+\r
+\r
+package org.apache.derby.impl.drda;\r
+\r
+/**\r
+ This class defines DSS constants that are shared in the classes implementing\r
+ the DRDA protocol.\r
+*/\r
+class DssConstants\r
+{\r
+\r
+ protected static final int MAX_DSS_LENGTH = 32767;\r
+\r
+ // Registered DSS identifier indicating DDM data (xD0 for DDM data).\r
+ protected static final int DSS_ID = 0xD0;\r
+\r
+ // DSS chaining bit.\r
+ protected static final int DSS_NOCHAIN = 0x00;\r
+ protected static final int DSSCHAIN = 0x40;\r
+\r
+ // DSS chaining bit for continuation on error\r
+ protected static final int DSSCHAIN_ERROR_CONTINUE = 0x20;\r
+\r
+ // DSS chaining bit where next DSS has same correlation ID.\r
+ protected static final int DSSCHAIN_SAME_ID = 0x50;\r
+\r
+ // DSS formatter for an OBJDSS.\r
+ protected static final int DSSFMT_OBJDSS = 0x03;\r
+\r
+ // DSS formatter for an RPYDSS.\r
+ protected static final int DSSFMT_RPYDSS = 0x02;\r
+\r
+ // DSSformatter for an RQSDSS.\r
+ protected static final int DSSFMT_RQSDSS = 0x01;\r
+\r
+ // DSS request correlation id unknown value\r
+ protected static final int CORRELATION_ID_UNKNOWN = -1;\r
+\r
+ // DSS length continuation bit\r
+ protected static final int CONTINUATION_BIT = 0x8000;\r
+\r
+ // Registered SNA GDS identifier indicating DDM data (xD0 for DDM data).\r
+ static final int GDS_ID = 0xD0;\r
+\r
+ // GDS chaining bits.\r
+ static final int GDSCHAIN = 0x40;\r
+\r
+ // GDS chaining bits where next DSS has different correlation ID.\r
+ static final int GDSCHAIN_SAME_ID = 0x50;\r
+\r
+ // GDS formatter for an OBJDSS.\r
+ static final int GDSFMT_OBJDSS = 0x03;\r
+\r
+ // GDS formatter for an RPYDSS.\r
+ static final int GDSFMT_RPYDSS = 0x02;\r
+\r
+ // GDS formatter for an RQSDSS.\r
+ static final int GDSFMT_RQSDSS = 0x01;\r
+\r
+ // hide the default constructor\r
+ private DssConstants () {}\r
+}\r