ipBuf.append(ipBytes[i]);
ipBuf.append((int)(ipBytes[i] & 0xff));
    public int iscQueueEvents(IscDbHandle dbHandle,             EventHandle eventHandle, EventHandler eventHandler)             throws GDSException {        boolean debug = log != null && log.isDebugEnabled();        isc_db_handle_impl db = (isc_db_handle_impl)dbHandle;        if (db == null) {            throw new GDSException(ISCConstants.isc_bad_db_handle);        }        synchronized (db) {            try {                if (db.eventCoordinator == null){                    if (debug)                        log.debug("op_connect_request ");                                        db.out.writeInt(op_connect_request);                    db.out.writeInt(1);  // Connection type                    db.out.writeInt(db.getRdb_id());                    db.out.writeInt(0);                    db.out.flush();                                       nextOperation(db);                     int auxHandle = db.in.readInt();                    int port = iscVaxInteger(db.in.readRawBuffer(2), 0, 2);                    // sin family                    db.in.readRawBuffer(2);                    // IP address                    byte[] ipBytes = db.in.readRawBuffer(4);                    StringBuffer ipBuf = new StringBuffer();                    for (int i = 3; i >= 0; i--){                        ipBuf.append(ipBytes[i]);                        if (i > 0) ipBuf.append(".");                    }                    String ipAddress = ipBuf.toString();                    // Ignore                    db.in.readRawBuffer(12);                    readStatusVector(db);                    db.eventCoordinator =                         new EventCoordinatorImp(auxHandle, ipAddress, port);                }                db.eventCoordinator.queueEvents(                    db,                    (EventHandleImp)eventHandle,                     eventHandler);            } catch (IOException ioe){                throw new GDSException(                        ISCConstants.isc_arg_gds,                         ISCConstants.isc_net_read_err,                         ioe.getMessage());            }        }        return 0;    }