public I2NPMessage CreateBuildRequest(InboundTunnel replytunnel) { var vtb = VariableTunnelBuildMessage.BuildOutboundTunnel(Config.Info, replytunnel.Destination, replytunnel.GatewayTunnelId, TunnelBuildReplyMessageId); //Logging.Log( vtb.ToString() ); return(vtb); }
public void Test(InboundTunnel tunnel) { if (tunnel == null) { return; } var test = TestResults.Get(tunnel); if (test != null && test.Pass > 0) { return; } if (OutstandingTests.Get(tunnel) != null) { return; } InboundTunnels.Enqueue(tunnel); TunnelAdded.Set(); }