Exemplo n.º 1
0
        internal void NotifyReceived(GXReceivedPacketEventArgs e)
        {
            ++this.Statistics.PacketsReceived;
            if (e.Answer)
            {
				System.Diagnostics.Debug.Assert((e.Packet.Status & PacketStates.Sent) == 0);
                m_replyEvent.Set();
                return;
            }
            if (PacketParser != null)
            {
                PacketParser.Received(this, e);
            }
            //Reply packet received.
            else if (OnReceived != null)
            {
                OnReceived(this, e);
            }
        }
Exemplo n.º 2
0
		/// <summary>
		/// OnReceived event. Called when a GXPacket is received.
		/// </summary>
		public virtual void OnReceived(object sender, GXReceivedPacketEventArgs e)
		{
		}
		public void Received(object sender, GXReceivedPacketEventArgs e)
		{		
		}
 void IGXPacketParser.Received(object sender, GXReceivedPacketEventArgs e)
 {         
 }