Examples of IPacketPayload


Examples of org.hxzon.netprotocol.common.IPacketPayload

        this._group = group;
    }

    public String getProtocolTypeDesc() {
        if (_group != null) {
            IPacketPayload payload = _group.getPayload();
            if (payload != null) {
                if (payload instanceof IPacket) {
                    payload = ((IPacket) payload).getLastPayload();
                }
                return payload.getProtocolTypeDesc();
            }
        }
        return getSrcPacket().getProtocolTypeDesc();
    }
View Full Code Here

Examples of org.hxzon.netprotocol.common.IPacketPayload

            len = packet.getPayloadLength();
            System.arraycopy(packet.getSrcData(), packet.getPayloadOffset(), reassembly, i, len);
            i += len;
        }
        _reassemblyData = reassembly;
        IPacketPayload payload = ProtocolBindingList.findBinding(_packets.get(0));
        if (payload != null) {
            if (payload instanceof Packet) {
                ((Packet) payload).init(reassembly, 0);
            }
        }
View Full Code Here

Examples of org.hxzon.netprotocol.common.IPacketPayload

    public static IPacketPayload findBinding(IPacketPayload packet) {
        List<ProtocolBinding> list = _map.get(packet.getClass());
        if (list != null) {
            for (ProtocolBinding binding : list) {
                IPacketPayload next = binding.match(packet);
                if (next != null) {
                    return next;
                }
            }
        }
View Full Code Here

Examples of org.hxzon.netprotocol.common.IPacketPayload

            len = packet.getPayloadLength();
            System.arraycopy(packet.getSrcData(), packet.getPayloadOffset(), reassembly, i, len);
            i += len;
        }
        _reassemblyData = reassembly;
        IPacketPayload payload = ProtocolBindingList.findBinding(_packets.get(0));
        if (payload != null) {
            if (payload instanceof Packet) {
                ((Packet) payload).init(reassembly, 0);
            }
        }
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.