KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > derby > impl > drda > DssConstants


1 /*
2
3    Derby - Class org.apache.derby.impl.drda.DssConstants
4
5    Licensed to the Apache Software Foundation (ASF) under one or more
6    contributor license agreements. See the NOTICE file distributed with
7    this work for additional information regarding copyright ownership.
8    The ASF licenses this file to You under the Apache License, Version 2.0
9    (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
23 package org.apache.derby.impl.drda;
24
25 /**
26     This class defines DSS constants that are shared in the classes implementing
27     the DRDA protocol.
28 */

29 class DssConstants
30 {
31
32   protected static final int MAX_DSS_LENGTH = 32767;
33
34   // Registered DSS identifier indicating DDM data (xD0 for DDM data).
35
protected static final int DSS_ID = 0xD0;
36
37   // DSS chaining bit.
38
protected static final int DSS_NOCHAIN = 0x00;
39   protected static final int DSSCHAIN = 0x40;
40
41   // DSS chaining bit for continuation on error
42
protected static final int DSSCHAIN_ERROR_CONTINUE = 0x20;
43
44   // DSS chaining bit where next DSS has same correlation ID.
45
protected static final int DSSCHAIN_SAME_ID = 0x50;
46
47   // DSS formatter for an OBJDSS.
48
protected static final int DSSFMT_OBJDSS = 0x03;
49
50   // DSS formatter for an RPYDSS.
51
protected static final int DSSFMT_RPYDSS = 0x02;
52
53   // DSSformatter for an RQSDSS.
54
protected static final int DSSFMT_RQSDSS = 0x01;
55
56   // DSS request correlation id unknown value
57
protected static final int CORRELATION_ID_UNKNOWN = -1;
58
59   // DSS length continuation bit
60
protected static final int CONTINUATION_BIT = 0x8000;
61
62  // Registered SNA GDS identifier indicating DDM data (xD0 for DDM data).
63
static final int GDS_ID = 0xD0;
64
65   // GDS chaining bits.
66
static final int GDSCHAIN = 0x40;
67
68   // GDS chaining bits where next DSS has different correlation ID.
69
static final int GDSCHAIN_SAME_ID = 0x50;
70
71   // GDS formatter for an OBJDSS.
72
static final int GDSFMT_OBJDSS = 0x03;
73
74   // GDS formatter for an RPYDSS.
75
static final int GDSFMT_RPYDSS = 0x02;
76
77   // GDS formatter for an RQSDSS.
78
static final int GDSFMT_RQSDSS = 0x01;
79
80   // hide the default constructor
81
private DssConstants () {}
82 }
83
Popular Tags