2009-10-19 Jb Evain <jbevain@novell.com>
[mcs.git] / class / FirebirdSql.Data.Firebird / FirebirdSql.Data.Common / IServiceManager.cs
blob1ab1529dcc6b4aac59333a6898b6187c8fdc9af7
1 /*
2 * Firebird ADO.NET Data provider for .NET and Mono
3 *
4 * The contents of this file are subject to the Initial
5 * Developer's Public License Version 1.0 (the "License");
6 * you may not use this file except in compliance with the
7 * License. You may obtain a copy of the License at
8 * http://www.firebirdsql.org/index.php?op=doc&id=idpl
10 * Software distributed under the License is distributed on
11 * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
12 * express or implied. See the License for the specific
13 * language governing rights and limitations under the License.
15 * Copyright (c) 2002, 2005 Carlos Guzman Alvarez
16 * All Rights Reserved.
19 using System;
21 namespace FirebirdSql.Data.Common
23 internal interface IServiceManager
25 #region Properties
27 int Handle
29 get;
32 bool IsLittleEndian
34 get;
37 #endregion
39 #region Methods
41 void Attach(ServiceParameterBuffer spb, string dataSource, int port, string service);
43 void Detach();
45 void Start(ServiceParameterBuffer spb);
47 ServiceParameterBuffer CreateParameterBuffer();
49 void Query(ServiceParameterBuffer spb,
50 int requestLength, byte[] requestBuffer, int bufferLength, byte[] buffer);
52 #endregion