db.out.flush();
    public void isc_attach_database(String file_name,                                   isc_db_handle db_handle,                                   Clumplet c                           /* int dpb_length,                            byte[] dpb*/) throws GDSException  {        isc_db_handle_impl db = (isc_db_handle_impl) db_handle;        if (db == null) {            throw new GDSException(isc_bad_db_handle);        }        synchronized (db) {            DbAttachInfo dbai = new DbAttachInfo(file_name);            connect(db, dbai);            try {                if (debug) {System.out.print("op_attach ");}                db.out.writeInt(op_attach);                db.out.writeInt(0);                // packet->p_atch->p_atch_database                db.out.writeString(dbai.getFileName());                db.out.writeTyped(isc_dpb_version1, (Xdrable)c);                //            db.out.writeInt(c.getLength());                //            c.write(db.out);                //            db.out.writeBuffer(dpb, dpb_length);                if (debug) {System.out.println("sent");}                try {                    Response r = receiveResponse(db);                    db.setRdb_id(r.resp_object);                }                catch (GDSException ge) {                    disconnect(db);                    throw ge;                }            } catch (IOException ex) {                throw new GDSException(isc_net_write_err);            }        }    }