TorrentManager
Version 1 (olivier dufour, 04/07/2009 03:43 PM)
1 | 1 | h1. TorrentManager |
|
---|---|---|---|
2 | 1 | ||
3 | 1 | h2. Events: |
|
4 | 1 | ||
5 | 1 | PeerConnected(object sender, PeerConnectionEventArgs args) |
|
6 | 1 | ||
7 | 1 | PeerDisconnected(object sender, PeerConnectionEventArgs args) |
|
8 | 1 | ||
9 | 1 | PeersFound(object sender, PeersAddedEventArgs args) |
|
10 | 1 | ||
11 | 1 | PieceHashed(object sender, PieceHashedEventArgs args) |
|
12 | 1 | ||
13 | 1 | TorrentStateChanged(object sender, TorrentStateChangedEventArgs args) |
|
14 | 1 | ||
15 | 1 | h2. Properties: |
|
16 | 1 | ||
17 | 1 | BitField Bitfield |
|
18 | 1 | bool CanUseDht |
|
19 | 1 | bool Complete |
|
20 | 1 | ClientEngine Engine |
|
21 | 1 | Error Error |
|
22 | 1 | int PeerReviewRoundsComplete |
|
23 | 1 | bool HashChecked |
|
24 | 1 | bool HasMetadata |
|
25 | 1 | ConnectionMonitor Monitor |
|
26 | 1 | int OpenConnections |
|
27 | 1 | PeerManager Peers |
|
28 | 1 | PieceManager PieceManager |
|
29 | 1 | double Progress |
|
30 | 1 | string SavePath |
|
31 | 1 | TorrentSettings Settings |
|
32 | 1 | TorrentState State |
|
33 | 1 | DateTime StartTime |
|
34 | 1 | TrackerManager TrackerManager |
|
35 | 1 | Torrent Torrent |
|
36 | 1 | int UploadingTo |
|
37 | 1 | bool IsInitialSeeding |
|
38 | 1 | InfoHash InfoHash |
|
39 | 1 | ||
40 | 1 | ||
41 | 1 | h2. Constructor: |
|
42 | 1 | TorrentManager(Torrent torrent, string savePath, TorrentSettings settings) |
|
43 | 1 | TorrentManager(Torrent torrent, string savePath, TorrentSettings settings, string baseDirectory) |
|
44 | 1 | TorrentManager(InfoHash infoHash, string savePath, TorrentSettings settings, string torrentSave, List<MonoTorrentCollection<string>> announces) |
|
45 | 1 | ||
46 | 1 | h2. Methods |
|
47 | 1 | ||
48 | 1 | void ChangePicker(PiecePicker picker) |
|
49 | 1 | void Dispose() |
|
50 | 1 | string ToString( ) |
|
51 | 1 | bool Equals(object obj) |
|
52 | 1 | bool Equals(TorrentManager other) |
|
53 | 1 | List<Piece> GetActiveRequests() |
|
54 | 1 | int GetHashCode() |
|
55 | 1 | List<PeerId> GetPeers() |
|
56 | 1 | void HashCheck(bool autoStart) |
|
57 | 1 | void MoveFiles(string newPath, bool overWriteExisting) |
|
58 | 1 | void Pause() |
|
59 | 1 | void Start() |
|
60 | 1 | WaitHandle Stop() |
|
61 | 1 | void LoadFastResume(FastResume data) |
|
62 | 1 | FastResume SaveFastResume() |