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]; }
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]; }