DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
ProtocolConstants.cs
Go to the documentation of this file.
1 //
2 // Copyright 2010-2015 Deveel
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
16 
17 using System;
18 
19 namespace Deveel.Data.Protocol {
23  public static class ProtocolConstants {
27  public const int Acknowledgement = 5;
28 
32  public const int DatabaseNotFound = 7;
33 
37  public const int UserAuthenticationPassed = 10;
38 
42  public const int UserAuthenticationFailed = 15;
43 
47  public const int Success = 20;
48 
52  public const int Failed = 25;
53 
54 
58  public const int Exception = 30;
59 
66  public const int AuthenticationError = 35;
67 
68 
69 
70 
71 
72  // ---------- Commands ----------
73 
77  public const int ChangeDatabase = 40;
78 
82  public const int Query = 50;
83 
87  public const int DisposeResult = 55;
88 
92  public const int ResultSection = 60;
93 
97  public const int StreamableObjectSection = 61;
98 
103  public const int DisposeStreamableObject = 62;
104 
108  public const int PushStreamableObjectPart = 63;
109 
110 
114  public const int Ping = 65;
115 
119  public const int Close = 70;
120 
124  public const int DatabaseEvent = 75;
125 
132  public const int ServerRequest = 80;
133  }
134 }
Constants used in the database communication protocol.