public void AddPacket(Packet2 pkt) { lock (_pktList) { this._pktList.Add(pkt); } }
/// <summary> /// find the first packet in a flow /// </summary> public void FirstPacket() { _firstPacket = _pktList[0]; foreach (Packet2 p in _pktList) { _firstPacket = p.ReceivingTime == this.StartTime ? p : _pktList[0]; } }
public ConnectionPair2(Packet2 pkt) { this.SrcEnd = pkt.SrcEnd; this.DestEnd = pkt.DestEnd; this.Protocol = pkt.PacketProtocol; }