Author: alanmc
Date: 2007-03-23 07:30:49 -0500 (Fri, 23 Mar 2007)
New Revision: 74869

Modified:
   trunk/bitsharp/src/MonoTorrent.Common/Torrent.cs
Log:
Full support for announce-list implemented now. I just need to verify my 
implementation against the spec.

Modified: trunk/bitsharp/src/MonoTorrent.Common/Torrent.cs
===================================================================
--- trunk/bitsharp/src/MonoTorrent.Common/Torrent.cs    2007-03-23 12:26:23 UTC 
(rev 74868)
+++ trunk/bitsharp/src/MonoTorrent.Common/Torrent.cs    2007-03-23 12:30:49 UTC 
(rev 74869)
@@ -586,8 +586,13 @@
                         break;
 
                     case ("announce-list"):
-                        break;      //FIXME: Insert support for this when i 
know what it is...
+                        BEncodedList announces = (BEncodedList)keypair.Value;
+                        this.announceUrls = new string[announces.Count];
 
+                        for (int j = 0; j < announces.Count; j++)
+                            this.announceUrls[j] = 
((BEncodedString)announces[j]).Text;
+                        break;
+
                     default:
                         break;
                 }

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

Reply via email to