コード例 #1
0
ファイル: OutboundTunnel.cs プロジェクト: githubassets/i2p-cs
        public I2NPMessage CreateBuildRequest(InboundTunnel replytunnel)
        {
            var vtb = VariableTunnelBuildMessage.BuildOutboundTunnel(Config.Info,
                                                                     replytunnel.Destination, replytunnel.GatewayTunnelId,
                                                                     TunnelBuildReplyMessageId);

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

            return(vtb);
        }
コード例 #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();
        }