Author: alanmc
Date: 2008-01-30 14:43:26 -0500 (Wed, 30 Jan 2008)
New Revision: 94410
Modified:
trunk/bitsharp/src/MonoTorrent/MonoTorrent.Client/Messages/PeerMessages/PieceMessage.cs
trunk/bitsharp/src/MonoTorrent/MonoTorrent.Client/Messages/PeerMessages/PortMessage.cs
Log:
Made constructors public
Modified:
trunk/bitsharp/src/MonoTorrent/MonoTorrent.Client/Messages/PeerMessages/PieceMessage.cs
===================================================================
---
trunk/bitsharp/src/MonoTorrent/MonoTorrent.Client/Messages/PeerMessages/PieceMessage.cs
2008-01-30 19:35:59 UTC (rev 94409)
+++
trunk/bitsharp/src/MonoTorrent/MonoTorrent.Client/Messages/PeerMessages/PieceMessage.cs
2008-01-30 19:43:26 UTC (rev 94410)
@@ -115,7 +115,7 @@
/// <summary>
/// Creates a new piece message
/// </summary>
- internal PieceMessage(TorrentManager manager)
+ public PieceMessage(TorrentManager manager)
{
this.manager = manager;
}
@@ -127,7 +127,7 @@
/// <param name="pieceIndex">The index of the piece</param>
/// <param name="startOffset">The start offset in bytes of the block
of data</param>
/// <param name="blockLength">The length in bytes of the data</param>
- internal PieceMessage(TorrentManager manager, int pieceIndex, int
startOffset, int blockLength)
+ public PieceMessage(TorrentManager manager, int pieceIndex, int
startOffset, int blockLength)
{
this.manager = manager;
this.pieceIndex = pieceIndex;
Modified:
trunk/bitsharp/src/MonoTorrent/MonoTorrent.Client/Messages/PeerMessages/PortMessage.cs
===================================================================
---
trunk/bitsharp/src/MonoTorrent/MonoTorrent.Client/Messages/PeerMessages/PortMessage.cs
2008-01-30 19:35:59 UTC (rev 94409)
+++
trunk/bitsharp/src/MonoTorrent/MonoTorrent.Client/Messages/PeerMessages/PortMessage.cs
2008-01-30 19:43:26 UTC (rev 94410)
@@ -72,7 +72,7 @@
/// <summary>
/// Creates a new PortMessage
/// </summary>
- internal PortMessage()
+ public PortMessage()
{
}
@@ -81,7 +81,7 @@
/// Creates a new Port Message
/// </summary>
/// <param name="port">The port to use</param>
- internal PortMessage(ushort port)
+ public PortMessage(ushort port)
{
this.port = port;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches