Esempio n. 1
0
 /**
  * @param p a Packet to send to the host on the other
  * side of the Edge.
  * @throw EdgeException if any problem happens
  */
 public virtual void Send(BU.ICopyable p)
 {
     if (1 == _is_closed)
     {
         throw new EdgeClosedException(
                   String.Format("Tried to send on a closed edge: {0}", this));
     }
     _send_cb.HandleEdgeSend(this, p);
     Interlocked.Exchange(ref _last_out_packet_datetime, DateTime.UtcNow.Ticks);
 }