Exemplo n.º 1
0
        public void Attach(ServiceParameterBuffer spb, string dataSource, int port, string service)
        {
            int[] statusVector = FesConnection.GetNewStatusVector();
            int   svcHandle    = this.Handle;

            FbClient.isc_service_attach(
                statusVector,
                (short)service.Length,
                service,
                ref svcHandle,
                (short)spb.Length,
                spb.ToArray());

            // Parse status	vector
            this.ParseStatusVector(statusVector);

            // Update status vector
            this.handle = svcHandle;
        }