Author: alanmc
Date: 2006-09-10 12:28:11 -0400 (Sun, 10 Sep 2006)
New Revision: 65180
Added:
branches/BitSharp/bitsharp/src/MonoTorrent.Client/PeerMessages/ExtendedListMessage.cs
Log:
Added in support for the Azureus Extended Messaging Protocol.
Added:
branches/BitSharp/bitsharp/src/MonoTorrent.Client/PeerMessages/ExtendedListMessage.cs
===================================================================
---
branches/BitSharp/bitsharp/src/MonoTorrent.Client/PeerMessages/ExtendedListMessage.cs
2006-09-10 16:27:19 UTC (rev 65179)
+++
branches/BitSharp/bitsharp/src/MonoTorrent.Client/PeerMessages/ExtendedListMessage.cs
2006-09-10 16:28:11 UTC (rev 65180)
@@ -0,0 +1,56 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using MonoTorrent.Common;
+
+namespace MonoTorrent.Client.PeerMessages
+{
+ /// <summary>
+ /// This class represents the BT_EXTENDED_LST as listed by the Azurues
Extended Messaging Protocol
+ /// </summary>
+ class ExtendedListMessage : IPeerMessage
+ {
+ public const byte MessageId = (byte)20;
+
+ #region Member Variables
+ public BEncodedDictionary Dictionary
+ {
+ get { return this.dictionary; }
+ }
+ private BEncodedDictionary dictionary;
+ #endregion
+
+
+ #region Constructors
+ public ExtendedListMessage()
+ {
+ }
+ public ExtendedListMessage(BEncodedDictionary supportedMessages)
+ {
+ }
+ #endregion
+
+
+ #region Methods
+ public int Encode(byte[] buffer, int offset)
+ {
+ throw new Exception("The method or operation is not implemented.");
+ }
+
+ public void Decode(byte[] buffer, int offset, int length)
+ {
+ this.dictionary = (BEncodedDictionary)BEncode.Decode(buffer,
offset, length);
+ }
+
+ public void Handle(PeerConnectionID id)
+ {
+ throw new Exception("The method or operation is not implemented.");
+ }
+
+ public int ByteLength
+ {
+ get { throw new Exception("The method or operation is not
implemented."); }
+ }
+ #endregion
+ }
+}
Property changes on:
branches/BitSharp/bitsharp/src/MonoTorrent.Client/PeerMessages/ExtendedListMessage.cs
___________________________________________________________________
Name: svn:eol-style
+ native
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches