コード例 #1
0
 public void AddPacket(Packet2 pkt)
 {
     lock (_pktList)
     {
         this._pktList.Add(pkt);
     }
 }
コード例 #2
0
        /// <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];
            }
        }
コード例 #3
0
 public ConnectionPair2(Packet2 pkt)
 {
     this.SrcEnd   = pkt.SrcEnd;
     this.DestEnd  = pkt.DestEnd;
     this.Protocol = pkt.PacketProtocol;
 }