Package org.hypertable.AsyncComm

Examples of org.hypertable.AsyncComm.CommBuf.AppendInt()


    int response(long offset, int nread, byte [] data) {
        CommHeader header = new CommHeader();
        header.initialize_from_request_header(mEvent.header);
        CommBuf cbuf = new CommBuf(header, 16, data, nread);
        cbuf.AppendInt(Error.OK);
        cbuf.AppendLong(offset);
        cbuf.AppendInt(nread);
        return mComm.SendResponse(mEvent.addr, cbuf);
    }
}
View Full Code Here


        CommHeader header = new CommHeader();
        header.initialize_from_request_header(mEvent.header);
        CommBuf cbuf = new CommBuf(header, 16, data, nread);
        cbuf.AppendInt(Error.OK);
        cbuf.AppendLong(offset);
        cbuf.AppendInt(nread);
        return mComm.SendResponse(mEvent.addr, cbuf);
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.