Author: alanmc
Date: 2007-04-21 09:20:52 -0400 (Sat, 21 Apr 2007)
New Revision: 76040

Modified:
   trunk/bitsharp/src/MonoTorrent.Client/Managers/TrackerManager.cs
Log:
Added helper method to get the current tracker

Modified: trunk/bitsharp/src/MonoTorrent.Client/Managers/TrackerManager.cs
===================================================================
--- trunk/bitsharp/src/MonoTorrent.Client/Managers/TrackerManager.cs    
2007-04-21 10:10:07 UTC (rev 76039)
+++ trunk/bitsharp/src/MonoTorrent.Client/Managers/TrackerManager.cs    
2007-04-21 13:20:52 UTC (rev 76040)
@@ -61,6 +61,15 @@
 
 
         /// <summary>
+        /// Returns the tracker that is current in use by the engine
+        /// </summary>
+        public Tracker CurrentTracker
+        {
+            get { return this.trackerTiers[0].Trackers[0]; }
+        }
+
+
+        /// <summary>
         /// The infohash for the torrent
         /// </summary>
         private string infoHash;

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to