| 69 | '''connect_on_new_core(callback): ''' |
| 70 | |
| 71 | Connect a callback whenever a new core is connected to. |
| 72 | |
| 73 | '''connect_on_no_core(callback): ''' |
| 74 | |
| 75 | Connect a callback whenever the core is disconnected from. |
| 76 | |
| 77 | '''connected(): ''' |
| 78 | |
| 79 | Returns True if connected to a host, and False if not. |
| 80 | |
| 81 | '''force_call(block): ''' |
| 82 | |
| 83 | Forces the multicall batch to go now and not wait for the timer. This |
| 84 | call also blocks until all callbacks have been dealt with. |
| 85 | |
| 86 | '''get_core_uri(): ''' |
| 87 | |
| 88 | Get the core URI |
| 89 | |
| 90 | '''is_localhost(): ''' |
| 91 | |
| 92 | Returns True if core is a localhost |
| 93 | |
| 94 | '''set_core_uri(uri): ''' |
| 95 | |
| 96 | Sets the core uri |
| 97 | |
| 98 | '''shutdown(): ''' |
| 99 | |
| 100 | Shutdown the core daemon |
| 101 | |
| 102 | = Remote api = |
| 103 | Core methods exposed by aclient and sclient. |
| 104 | |
| 105 | for sclient : ignore [callback] |
| 106 | |
| 107 | for acleint : [callback] is the 1st parameter and refers to a callback method. |
| 108 | |
| 109 | ''Generated from docstrings , do not edit'' |
| 110 | |
| 111 | |
| 112 | '''add_torrent_file(torrent_files, torrent_options): ''' |
| 113 | |
| 114 | Adds torrent files to the core |
| 115 | Expects a list of torrent files |
| 116 | A list of torrent_option dictionaries in the same order of torrent_files |
| 117 | |
76 | | '''connect_on_new_core(callback): ''' |
77 | | |
78 | | Connect a callback whenever a new core is connected to. |
79 | | |
80 | | '''connect_on_no_core(callback): ''' |
81 | | |
82 | | Connect a callback whenever the core is disconnected from. |
83 | | |
84 | | '''connected(): ''' |
85 | | |
86 | | Returns True if connected to a host, and False if not. |
87 | | |
88 | | '''force_call(block): ''' |
89 | | |
90 | | Forces the multicall batch to go now and not wait for the timer. This |
91 | | call also blocks until all callbacks have been dealt with. |
92 | | |
93 | | '''get_core_uri(): ''' |
94 | | |
95 | | Get the core URI |
96 | | |
97 | | '''is_localhost(): ''' |
98 | | |
99 | | Returns True if core is a localhost |
100 | | |
101 | | '''set_core_uri(uri): ''' |
102 | | |
103 | | Sets the core uri |
104 | | |
105 | | '''shutdown(): ''' |
106 | | |
107 | | Shutdown the core daemon |
108 | | |
109 | | = Remote api = |
110 | | Core methods exposed by aclient and sclient. |
111 | | |
112 | | for sclient : ignore [callback] |
113 | | |
114 | | for acleint : [callback] is the 1st parameter and refers to a callback method. |
115 | | |
116 | | ''Generated from docstrings , do not edit'' |
117 | | |
118 | | |
119 | | '''add_torrent_file(torrent_files, torrent_options): ''' |
120 | | |
121 | | Adds torrent files to the core |
122 | | Expects a list of torrent files |
123 | | A list of torrent_option dictionaries in the same order of torrent_files |