Author: alanmc
Date: 2008-02-17 08:37:03 -0500 (Sun, 17 Feb 2008)
New Revision: 95963
Modified:
trunk/bitsharp/src/MonoTorrent/MonoTorrent.Tracker/StaticIntervalAlgorithm.cs
trunk/bitsharp/src/MonoTorrent/MonoTorrent.Tracker/Tracker.cs
Log:
Made the intervals publicly accessible/changeable
Modified:
trunk/bitsharp/src/MonoTorrent/MonoTorrent.Tracker/StaticIntervalAlgorithm.cs
===================================================================
---
trunk/bitsharp/src/MonoTorrent/MonoTorrent.Tracker/StaticIntervalAlgorithm.cs
2008-02-17 12:58:35 UTC (rev 95962)
+++
trunk/bitsharp/src/MonoTorrent/MonoTorrent.Tracker/StaticIntervalAlgorithm.cs
2008-02-17 13:37:03 UTC (rev 95963)
@@ -61,6 +61,7 @@
public int MinInterval
{
get { return min_interval; }
+ set { min_interval = value; }
}
///<summary>
@@ -69,6 +70,7 @@
public int Interval
{
get { return interval; }
+ set { interval = value; }
}
/// <summary>
@@ -77,6 +79,7 @@
public int PeerTimeout
{
get { return timeout; }
+ set { timeout = value; }
}
}
}
Modified: trunk/bitsharp/src/MonoTorrent/MonoTorrent.Tracker/Tracker.cs
===================================================================
--- trunk/bitsharp/src/MonoTorrent/MonoTorrent.Tracker/Tracker.cs
2008-02-17 12:58:35 UTC (rev 95962)
+++ trunk/bitsharp/src/MonoTorrent/MonoTorrent.Tracker/Tracker.cs
2008-02-17 13:37:03 UTC (rev 95963)
@@ -64,7 +64,7 @@
private bool allowScrape;
private bool allowNonCompact;
private Dictionary<byte[], SimpleTorrentManager> torrents;
- private IIntervalAlgorithm intervalAlgorithm;
+ private StaticIntervalAlgorithm intervalAlgorithm;
#endregion Fields
@@ -94,7 +94,7 @@
///<summary>
/// Get and set the IntervalAlgorithm used by this Tracker
///</summary>
- private IIntervalAlgorithm IntervalAlgorithm
+ public StaticIntervalAlgorithm IntervalAlgorithm
{
get { return intervalAlgorithm; }
set { intervalAlgorithm = value; }
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches