Example #1
0
 /// <summary>Drop Packet and clear owner reference.
 /// Note: Java will not reclaim the space until after all references
 /// to this packet have been cleared - ideally, one should not use this
 /// knowledge, but bright people probably will!
 /// </summary>
 public void Drop(Packet p)
 {
     CheckOwner(p);
     Interlocked.Increment(ref Network.drops);
     p.ClearOwner();
     p.Dispose();
 }