Example #1
0
        public static CPacket create(Int16 protocol_id)
        {
            //CPacket packet = new CPacket();
            CPacket packet = CPacketBufferManager.pop();

            packet.set_protocol(protocol_id);
            return(packet);
        }
Example #2
0
        public static CPacket Create(ushort mis_cmd)
        {
            CPacket packet = new CPacket();

            //todo:다음 리팩토링 대상은 바로 여기다. CPacketBufferManager!!!
            //CPacket packet = CPacketBufferManager.pop();
            packet.set_protocol(mis_cmd);
            return(packet);
        }
Example #3
0
        public static CPacket create(Int16 protocol_id)
        {
            CPacket packet = new CPacket();

            //todo:다음 리팩토링 대상은 바로 여기다. CPacketBufferManager!!!
            //CPacket packet = CPacketBufferManager.pop();
            packet.set_protocol(protocol_id);
            return(packet);
        }
Example #4
0
 public void copy_to(CPacket target)
 {
     target.set_protocol(this.protocol_id);
     target.overwrite(this.buffer, this.position);
 }
Example #5
0
 public void copy_to(CPacket target)
 {
     target.set_protocol(this.MIS_CMD);
     target.overwrite(this.Buffer, this.Position);
 }