Author: alanmc
Date: 2007-02-17 14:38:57 -0500 (Sat, 17 Feb 2007)
New Revision: 73061

Modified:
   trunk/bitsharp/src/MonoTorrent.Client/Managers/FileManager.cs
Log:
Added a property to access the number of pieces currently in the write queue

Modified: trunk/bitsharp/src/MonoTorrent.Client/Managers/FileManager.cs
===================================================================
--- trunk/bitsharp/src/MonoTorrent.Client/Managers/FileManager.cs       
2007-02-17 19:31:46 UTC (rev 73060)
+++ trunk/bitsharp/src/MonoTorrent.Client/Managers/FileManager.cs       
2007-02-17 19:38:57 UTC (rev 73061)
@@ -72,6 +72,14 @@
         }
 
         /// <summary>
+        /// Returns the number of pieces which are currently queued in the 
write buffer
+        /// </summary>
+        internal int QueuedWrites
+        {
+            get { return this.bufferedWrites.Count; }
+        }
+
+        /// <summary>
         /// The length of a piece in bytes
         /// </summary>
         public int PieceLength
@@ -79,6 +87,9 @@
             get { return this.pieceLength; }
         }
 
+        /// <summary>
+        /// Returns true if the write streams are open.
+        /// </summary>
         public bool StreamsOpen
         {
             get { return this.fileStreams != null; }

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

Reply via email to