public static CPacket create(Int16 protocol_id) { //CPacket packet = new CPacket(); CPacket packet = CPacketBufferManager.pop(); packet.set_protocol(protocol_id); return(packet); }
public static CPacket Create(ushort mis_cmd) { CPacket packet = new CPacket(); //todo:다음 리팩토링 대상은 바로 여기다. CPacketBufferManager!!! //CPacket packet = CPacketBufferManager.pop(); packet.set_protocol(mis_cmd); return(packet); }
public static CPacket create(Int16 protocol_id) { CPacket packet = new CPacket(); //todo:다음 리팩토링 대상은 바로 여기다. CPacketBufferManager!!! //CPacket packet = CPacketBufferManager.pop(); packet.set_protocol(protocol_id); return(packet); }
public void copy_to(CPacket target) { target.set_protocol(this.protocol_id); target.overwrite(this.buffer, this.position); }
public void copy_to(CPacket target) { target.set_protocol(this.MIS_CMD); target.overwrite(this.Buffer, this.Position); }