Exemplo n.º 1
0
        internal TagsTransferWindow(DestinationSession session, OutboundTunnelSelector tunnelsel)
        {
            Window = new TimeWindowDictionary <uint, GarlicCreationInfo>(GarlicResendTimeLimit);
            OutstandingMessageIds = new TimeWindowDictionary <uint, GarlicCreationInfo>(GarlicTimeBetweenResends * 10);

            Resend = new PeriodicAction(GarlicTimeBetweenResends / 4);

            Session        = session;
            TunnelSelector = tunnelsel;

            TunnelProvider.DeliveryStatusReceived += new Action <DeliveryStatusMessage>(TunnelProvider_DeliveryStatusReceived);
            InboundTunnel.DeliveryStatusReceived  += new Action <DeliveryStatusMessage>(InboundTunnel_DeliveryStatusReceived);
        }
Exemplo n.º 2
0
 public DestinationSession(I2PKeysAndCert dest, OutboundTunnelSelector tunnelsel, InboundTunnelSelector intunnelsel)
 {
     TagsValiditySlidingWindow = new TagsTransferWindow(this, tunnelsel);
     Destination      = dest;
     SelInboundTunnel = intunnelsel;
 }
Exemplo n.º 3
0
 public DestinationSessions(OutboundTunnelSelector outtunnelsel, InboundTunnelSelector intunnelsel)
 {
     OutTunnelSelector = outtunnelsel;
     InTunnelSelector  = intunnelsel;
 }