Package org.apache.activeio.packet

Examples of org.apache.activeio.packet.PacketData


    public int getLogFileOffset() {
        return logFileOffset;
    }
   
    public void writeToPacket(Packet packet) throws IOException {
        PacketData data = new PacketData(packet);
        data.writeInt(logFileId);
        data.writeInt(logFileOffset);
    }
View Full Code Here


        data.writeInt(logFileId);
        data.writeInt(logFileOffset);
    }   

    static public Location readFromPacket(Packet packet) throws IOException {
        PacketData data = new PacketData(packet);
        return new Location(data.readInt(), data.readInt());
    }
View Full Code Here

TOP

Related Classes of org.apache.activeio.packet.PacketData

Copyright © 2018 www.massapicom. 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.