Exemplo n.º 1
0
        public static CPacket create()
        {
            CPacket packet = CPacketBufferManager.pop();

            packet.position = Defines.HEADERSIZE;
            return(packet);
        }
Exemplo n.º 2
0
        public static CPacket create(Int16 protocol_id)
        {
            //CPacket packet = new CPacket();
            CPacket packet = CPacketBufferManager.pop();

            packet.set_protocol(protocol_id);
            return(packet);
        }