Author: alanmc
Date: 2006-09-10 08:07:13 -0400 (Sun, 10 Sep 2006)
New Revision: 65162
Modified:
branches/BitSharp/bitsharp/src/MonoTorrent.Client/ClientEngine.cs
branches/BitSharp/bitsharp/src/MonoTorrent.Client/Managers/ConnectionManager.cs
Log:
Updates to use the new PeerConnection classes
Modified: branches/BitSharp/bitsharp/src/MonoTorrent.Client/ClientEngine.cs
===================================================================
--- branches/BitSharp/bitsharp/src/MonoTorrent.Client/ClientEngine.cs
2006-09-10 12:04:57 UTC (rev 65161)
+++ branches/BitSharp/bitsharp/src/MonoTorrent.Client/ClientEngine.cs
2006-09-10 12:07:13 UTC (rev 65162)
@@ -404,7 +404,7 @@
peerSocket = peerSocket.EndAccept(result);
Peer peer = new Peer(string.Empty,
peerSocket.RemoteEndPoint.ToString());
- peer.Connection = new StandardConnection(peerSocket, 0);
+ peer.Connection = new TCPConnection(peerSocket, 0, new
NoEncryption());
id = new PeerConnectionID(peer);
id.Peer.Connection.BytesRecieved = 0;
Modified:
branches/BitSharp/bitsharp/src/MonoTorrent.Client/Managers/ConnectionManager.cs
===================================================================
---
branches/BitSharp/bitsharp/src/MonoTorrent.Client/Managers/ConnectionManager.cs
2006-09-10 12:04:57 UTC (rev 65161)
+++
branches/BitSharp/bitsharp/src/MonoTorrent.Client/Managers/ConnectionManager.cs
2006-09-10 12:07:13 UTC (rev 65162)
@@ -191,7 +191,7 @@
manager.ConnectingTo.Add(id);
lock (id)
{
- id.Peer.Connection = new StandardConnection(id.Peer.Location,
id.TorrentManager.Torrent.Pieces.Length);
+ id.Peer.Connection = new TCPConnection(id.Peer.Location,
id.TorrentManager.Torrent.Pieces.Length, new NoEncryption());
id.Peer.Connection.ProcessingQueue = true;
id.Peer.Connection.LastMessageSent = DateTime.Now;
id.Peer.Connection.BeginConnect(peerEndCreateConnection, id);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches