Examples of initialize_from_request_header()


Examples of org.hypertable.AsyncComm.CommHeader.initialize_from_request_header()

        super(comm, event);
    }

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

Examples of org.hypertable.AsyncComm.CommHeader.initialize_from_request_header()

    }

    int response(long offset, int nread, byte [] data) {
        CommHeader header = new CommHeader();
        CommBuf cbuf;
        header.initialize_from_request_header(mEvent.header);
        if (nread > 0)
            cbuf = new CommBuf(header, 16, data, nread);
        else
            cbuf = new CommBuf(header, 16);
        cbuf.AppendInt(Error.OK);
View Full Code Here

Examples of org.hypertable.AsyncComm.CommHeader.initialize_from_request_header()

        super(comm, event);
    }

    int response(int fd) {
        CommHeader header = new CommHeader();
        header.initialize_from_request_header(mEvent.header);
        CommBuf cbuf = new CommBuf(header, 8);
        cbuf.AppendInt(Error.OK);
        cbuf.AppendInt(fd);
        return mComm.SendResponse(mEvent.addr, cbuf);
    }
View Full Code Here

Examples of org.hypertable.AsyncComm.CommHeader.initialize_from_request_header()

        super(comm, event);
    }

    int response(boolean exists) {
        CommHeader header = new CommHeader();
        header.initialize_from_request_header(mEvent.header);
        CommBuf cbuf = new CommBuf(header, 5);
        cbuf.AppendInt(Error.OK);
        cbuf.AppendBool(exists);
        return mComm.SendResponse(mEvent.addr, cbuf);
    }
View Full Code Here

Examples of org.hypertable.AsyncComm.CommHeader.initialize_from_request_header()

        super(comm, event);
    }

    int response(long length) {
        CommHeader header = new CommHeader();
        header.initialize_from_request_header(mEvent.header);
        CommBuf cbuf = new CommBuf(header, 12);
        cbuf.AppendInt(Error.OK);
        cbuf.AppendLong(length);
        return mComm.SendResponse(mEvent.addr, cbuf);
    }
View Full Code Here

Examples of org.hypertable.AsyncComm.CommHeader.initialize_from_request_header()

        super(comm, event);
    }

    int response(int fd) {
        CommHeader header = new CommHeader();
        header.initialize_from_request_header(mEvent.header);
        CommBuf cbuf = new CommBuf(header, 8);
        cbuf.AppendInt(Error.OK);
        cbuf.AppendInt(fd);
        return mComm.SendResponse(mEvent.addr, cbuf);
    }
View Full Code Here

Examples of org.hypertable.AsyncComm.CommHeader.initialize_from_request_header()

        super(comm, event);
    }

    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
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.