-
Notifications
You must be signed in to change notification settings - Fork 19
Client.Swarm
Adrian Macal edited this page Mar 29, 2017
·
5 revisions
Communication with other peers in the entire swarm is the main principle of the torrent world. This namespace provides SwarmHelper and SwarmClient classes to support you in typical collaboration with other peers. Both classes encapsulate the communication and the persistence and provide you the easy access to the torrent world.
string destination = "d:\\leak";
NotificationCallback callback = Console.WriteLine;
string tracker = "http://bttracker.debian.org:6969/announce";
FileHash hash = FileHash.Parse("883c6f02fc46188ac17ea49c13c3e9d97413a5a2");
SwarmHelper.Download(destination, hash, tracker, callback);
string destination = "d:\\leak";
NotificationCallback callback = Console.WriteLine;
string tracker = "http://bttracker.debian.org:6969/announce";
FileHash hash = FileHash.Parse("883c6f02fc46188ac17ea49c13c3e9d97413a5a2");
SwarmHelper.Seed(destination, hash, tracker, callback);