Beispiel #1
0
        public Torrent(MultiLangMsg messages)
        {
            this.messages = messages;
#if (DEBUG)
            AnnounceURL = "http://announce.buran.pl/announce";
            AnnounceURL = "udp://thetracker.org/announce";
#endif
        }
Beispiel #2
0
 private void Init(List <FileStream> streams)
 {
     if (streams == null || streams.Count == 0)
     {
         MultiLangMsg messages = new MultiLangMsg();
         throw new ArgumentNullException(messages.GetMessage("NoStreamsProvided"));
     }
     fileStreams        = streams;
     currentStreamIndex = 0;
     currentStream      = fileStreams[currentStreamIndex];
 }
Beispiel #3
0
 public Torrent(MultiLangMsg messages)
 {
     this.messages = messages;
     #if (DEBUG)
     AnnounceURL = "http://announce.buran.pl/announce";
     AnnounceURL = "udp://thetracker.org/announce";
     #endif
 }
 private void Init(List<FileStream> streams)
 {
     if (streams == null || streams.Count == 0)
     {
         MultiLangMsg messages = new MultiLangMsg();
         throw new ArgumentNullException(messages.GetMessage("NoStreamsProvided"));
     }
     fileStreams = streams;
     currentStreamIndex = 0;
     currentStream = fileStreams[currentStreamIndex];
 }