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);
}
}
TunnelEdgeListener::CreateEdgeTo ( TunnelEdgeCallbackAction teca ) : void |