Brunet.Tunnel.TunnelEdgeListener.CreateEdgeTo C# (CSharp) Method

CreateEdgeTo() public method

Does not immediately create an edge to a remote node, instead, it tells a timer to wait 5 seconds prior to attempting an edge.
public CreateEdgeTo ( TransportAddress ta, EdgeCreationCallback ecb ) : void
ta TransportAddress
ecb EdgeCreationCallback
return void
    public override void CreateEdgeTo(TransportAddress ta, EdgeCreationCallback ecb)
    {
      TunnelTransportAddress tta = ta as TunnelTransportAddress;
      if(tta == null) {
        ecb(false, null, new Exception("TA Type is not Tunnel!"));
      } else {
        TunnelEdgeCallbackAction teca = new TunnelEdgeCallbackAction(tta, ecb);
        System.Action<DateTime> callback = delegate(DateTime now) {
          CreateEdgeTo(teca);
        };
        Brunet.Util.FuzzyTimer.Instance.DoAfter(callback, 10000, 0);
      }
    }

Same methods

TunnelEdgeListener::CreateEdgeTo ( TunnelEdgeCallbackAction teca ) : void