I am trying to download a torrent using monotorrent . I just downloaded the sample program from the github repository and made the necessary changes.
It creates all files in a reputable location with a size of 0 bytes and no progress. When working on the stack trace, I found that it throws an exception saying no connection could be made because the target machine actively refused it . This is a handled exception. I can only see this in stacktrace.
the same torrent can be downloaded by uTorrent in the Windows operating system.
I installed the Git repository for my project here
Here is my code. Is this an incomplete code ..? What else do I need to add ??
using System; using System.Collections.Generic; using MonoTorrent.Client; using MonoTorrent.Client.Encryption; using System.IO; using MonoTorrent.Common; using System.Net; using System.Web; using MonoTorrent.Tracker; using MonoTorrent.Tracker.Listeners; namespace Samples { public class ClientSample { BanList banlist; ClientEngine engine; List<TorrentManager> managers = new List<TorrentManager>(); public ClientSample() {
source share