Example #1
0
        public I2NPMessage CreateBuildRequest(InboundTunnel replytunnel)
        {
            var vtb = VariableTunnelBuildMessage.BuildOutboundTunnel(Config.Info,
                                                                     replytunnel.Destination, replytunnel.GatewayTunnelId,
                                                                     TunnelBuildReplyMessageId);

            //Logging.Log( vtb.ToString() );

            return(vtb);
        }
Example #2
0
        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();
        }