public bool Equals(PacketType t) { if (t.getHeader().Length != this.header.Length) return false; for (int i = 0; i < t.getHeader().Length; i++) if (t.getHeader()[i] != this.header[i]) return false; return true; }
public Packet(Packet copy) { this.data = copy.data; this.type = copy.type; }
public Packet(PacketType type, params byte[] data) { this.type = type; this.data = data; }