Example #1
0
        public void RemoveLease(I2PIdentHash tunnelgw, uint tunnelid)
        {
            I2PLease[] remove;

            lock ( Leases )
            {
                remove = Leases.Where(l => l.TunnelId == tunnelid && l.TunnelGw == tunnelgw).ToArray();
            }

            if (remove.Length != 0)
            {
                lock ( Leases )
                {
                    foreach (var one in remove)
                    {
                        Leases.Remove(one);
                    }
                }
            }
            else
            {
                DebugUtils.LogDebug("I2PLeaseSet RemoveLease: No lease found to remove");
            }
        }
Example #2
0
 public I2PRoutingKey(I2PIdentHash ident, bool nextday)
 {
     Identity = ident;
     NextDay  = nextday;
 }
Example #3
0
 public I2PLease(I2PIdentHash tunnelgw, I2PTunnelId tunnelid, I2PDate enddate)
 {
     TunnelGw = tunnelgw;
     TunnelId = tunnelid;
     EndDate  = enddate;
 }