2003-12-12 Francisco Figueiredo Jr. (fxjrlists@yahoo.com.br)
[mono.git] / mcs / class / Npgsql / Npgsql / NpgsqlMessageTypes.cs
1 // Npgsql.NpgsqlMessageTypes.cs
2 //
3 // Author:
4 //      Dave Joyner <d4ljoyn@yahoo.com>
5 //
6 //      Copyright (C) 2002 The Npgsql Development Team
7 //      npgsql-general@gborg.postgresql.org
8 //      http://gborg.postgresql.org/project/npgsql/projdisplay.php
9 //
10 //
11 // This library is free software; you can redistribute it and/or
12 // modify it under the terms of the GNU Lesser General Public
13 // License as published by the Free Software Foundation; either
14 // version 2.1 of the License, or (at your option) any later version.
15 //
16 // This library is distributed in the hope that it will be useful,
17 // but WITHOUT ANY WARRANTY; without even the implied warranty of
18 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19 // Lesser General Public License for more details.
20 //
21 // You should have received a copy of the GNU Lesser General Public
22 // License along with this library; if not, write to the Free Software
23 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
24
25
26 using System;
27
28 namespace Npgsql
29 {
30     /// <summary>
31     /// Summary description for NpgsqlMessageTypes.
32     /// </summary>
33     internal sealed class NpgsqlMessageTypes
34     {
35         private NpgsqlMessageTypes()
36         {
37             //
38             // TODO: Add constructor logic here
39             //
40         }
41         public const Char AsciiRow = 'D';
42         public const Char AuthenticationRequest = 'R';
43
44         // specific Authentication request types
45         public const Int32 AuthenticationOk = 0;
46         public const Int32 AuthenticationKerberosV4 = 1;
47         public const Int32 AuthenticationKerberosV5 = 2;
48         public const Int32 AuthenticationClearTextPassword = 3;
49         public const Int32 AuthenticationCryptPassword = 4;
50         public const Int32 AuthenticationMD5Password = 5;
51         public const Int32 AuthenticationSCMCredential = 6;
52
53         public const Char BackendKeyData = 'K';
54         public const Char BinaryRow = 'B';
55         public const Char BindComplete = '2';
56         public const Char CancelRequest = 'F';
57         public const Char CompletedResponse = 'C';
58         public const Char CopyDataRows = ' ';
59         public const Char CopyInResponse = 'G';
60         public const Char CopyOutResponse = 'H';
61         public const Char CursorResponse = 'P';
62         public const Char EmptyQueryResponse = 'I';
63         public const Char ErrorResponse = 'E';
64         public const Char FunctionCall = 'F';
65
66         public const Char FunctionResultResponse = 'V';
67         // specific function result responses
68         public const Char FunctionResultNonEmptyResponse = 'G';
69         public const Char FunctionResultVoidResponse = '0';
70
71         public const Char NoticeResponse = 'N';
72         public const Char NotificationResponse = 'A';
73         public const Char ParameterStatus = 'S';
74         public const Char ParseComplete = '1';
75         public const Char PasswordPacket = ' ';
76         public const Char Query = 'Q';
77         public const Char ReadyForQuery = 'Z';
78         public const Char RowDescription = 'T';
79         public const Char SSLRequest = ' ';
80         public const Char StartupPacket = ' ';
81
82
83
84     }
85 }