Author: alanmc
Date: 2006-12-03 12:11:44 -0500 (Sun, 03 Dec 2006)
New Revision: 68908
Modified:
trunk/bitsharp/src/MonoTorrent.Client/PeerConnections/PeerConnectionBase.cs
Log:
Some reordering of member variables and tidying up.
Modified:
trunk/bitsharp/src/MonoTorrent.Client/PeerConnections/PeerConnectionBase.cs
===================================================================
--- trunk/bitsharp/src/MonoTorrent.Client/PeerConnections/PeerConnectionBase.cs
2006-12-03 17:11:14 UTC (rev 68907)
+++ trunk/bitsharp/src/MonoTorrent.Client/PeerConnections/PeerConnectionBase.cs
2006-12-03 17:11:44 UTC (rev 68908)
@@ -285,9 +285,15 @@
/// <summary>
+ /// The byte array used to buffer data while it's being received
+ /// </summary>
+ internal byte[] recieveBuffer = BufferManager.EmptyBuffer;
+
+
+ /// <summary>
/// The byte array used to buffer data before it's sent
/// </summary>
- internal byte[] sendBuffer;
+ internal byte[] sendBuffer = BufferManager.EmptyBuffer;
/// <summary>
@@ -316,12 +322,6 @@
get { return this.suggestedPieces; }
}
private List<int> suggestedPieces;
-
-
- /// <summary>
- /// The byte array used to buffer data while it's being received
- /// </summary>
- internal byte[] recieveBuffer;
#endregion
@@ -339,7 +339,7 @@
this.allowedFastPieces = new List<int>();
this.bitField = new BitField(bitfieldLength);
this.monitor = new ConnectionMonitor();
- this.sendQueue = new Queue<IPeerMessageInternal>(4);
+ this.sendQueue = new Queue<IPeerMessageInternal>(12);
}
#endregion
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches