Package com.github.xgameenginee.core

Examples of com.github.xgameenginee.core.ProtocolCoder.decode()


    @Override
    protected Object decode(ChannelHandlerContext ctx, Channel ch, ChannelBuffer cb) throws Exception {
        ChannelBuffer buffer = (ChannelBuffer) super.decode(ctx, ch, cb);
        ProtocolCoder coder = GameBoss.getInstance().getProtocolCoder();
        if (coder != null && buffer != null) {
            byte[] decodebytes = coder.decode(buffer.array());
            return ChannelBuffers.wrappedBuffer(decodebytes);
        }
        return buffer;
    }
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.