Brunet.Transport.FunctionEdgeListener.HandleEdgeSend C# (CSharp) Метод

HandleEdgeSend() публичный Метод

public HandleEdgeSend ( Edge from, Brunet.Util p ) : void
from Edge
p Brunet.Util
Результат void
    public void HandleEdgeSend(Edge from, BU.ICopyable p) {
      FunctionEdgeListener el = null;
      FunctionEdge fe_from = (FunctionEdge)from;
      FunctionEdge fe_to = fe_from.Partner;
      if( fe_to != null ) {
        el = (FunctionEdgeListener)_listener_map[ fe_to.ListenerId ];
        try {
	  el._queue.Enqueue(new FQEntry(fe_to, p));
        }
        catch(System.InvalidOperationException) {
          //The queue other queue is closed:
          //Just throw the packet away.  This simulates UDP, which is giving less information
          //to the local node.
        }
      }
    }
  }