Example #1
0
 internal void ParseProperties(ServiceDefinition.TorrentPropertiesList ListToParse)
 {
     _maximumUploadBytesPerSecond   = ListToParse.MaximumUploadRate;
     _maximumDownloadBytesPerSecond = ListToParse.MaximumDownloadRate;
     _initialSeeding          = ListToParse.InitialSeeding;
     _useDistributedHashTable = ListToParse.UseDht;
     _usePeerExchange         = ListToParse.UsePeerExchange;
     _overrideQueueing        = ListToParse.OverrideQueueing;
     _maximumSeedRatio        = ListToParse.SeedRatio;
     _maximumSeedTime         = ListToParse.SeedTime;
     _uploadSlots             = ListToParse.UploadSlots;
     if (_trackers == null)
     {
         _trackers = new TrackerCollection(this);
     }
     _trackers.ParseTrackers(ListToParse.Trackers);
 }
Example #2
0
 internal Tracker(string Address, TrackerCollection ParentCollection)
 {
     this.ParentCollection = ParentCollection;
     _address = Address;
 }