Changeset 2029
- Timestamp:
- Jun 10, 2007, 7:36:07 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/misc/ipcproto.txt
r2028 r2029 121 121 Version: 1 122 122 Format: list of strings 123 Replies: "succeeded", "failed", "not-supported", "info" 123 124 Example: 8:addfilesl21:/torrents/foo.torrent20:/home/me/bar.torrente 124 125 "addfiles", ("/torrents/foo.torrent", /home/me/bar.torrent") … … 128 129 deleted safely) is implementation dependent and may not 129 130 currently be known or changed with this protocol. 130 Replies: succeeded, failed, info131 131 132 132 Key: "addfile-detailed" 133 133 Version: 2 134 134 Format: dict 135 Replies: "succeeded", "failed", "not-supported", "info" 135 136 Example: 16:addfile-detailedd4:file19:/tor/wooble.torrente 136 137 "addfile-detailed", {"file": "/tor/wooble.torrent"} … … 146 147 Version: 2 147 148 Format: boolean 149 Replies: "succeeded", "failed", "not-supported" 148 150 Example: 7:automapi1e 149 151 "automap", 1 150 Details: Enable (1) or disable (0) automatic port mapping on the 151 server. Other integer values will likely be treated as 1 but 152 this shold not be relied upon. 152 Details: Enable (1) or disable (0) automatic port mapping on the server. 153 153 154 154 Key: "autostart" 155 155 Version: 2 156 156 Format: boolean 157 Replies: "succeeded", "failed", "not-supported" 157 158 Example: 9:autostarti0e 158 159 "autostart", 0 159 160 Details: Enable (1) or disable (0) automatic starting of new torrents 160 added via "addfiles" message.161 added via "addfiles" or "addfiles-detailed" messages. 161 162 162 163 Key: "directory" 163 164 Version: 2 164 165 Format: string 166 Replies: "succeeded", "failed", "not-supported" 165 167 Example: 9:directory21:/home/roger/downloads 166 168 "directory", "/home/roger/downloads" … … 170 172 Version: 2 171 173 Format: int 174 Replies: "succeeded", "failed", "not-supported" 172 175 Example: 9:downlimiti100e 173 176 "downlimit", 100 … … 178 181 Version: 2 179 182 Format: string 183 Replies: N/A 180 184 Example: 6:failed17:permission denied 181 185 "failed", "permission denied … … 185 189 Version: 2 186 190 Format: value is ignored 191 Replies: "failed", "not-supported", "automap" 187 192 Example: 11:get-automap0: 188 193 "get-automap", "" … … 192 197 Version: 2 193 198 Format: value is ignored 199 Replies: "failed", "not-supported", "autostart" 194 200 Example: 13:get-autostart0: 195 201 "get-autostart", "" … … 199 205 Version: 2 200 206 Format: value is ignored 207 Replies: "failed", "not-supported", "directory" 201 208 Example: 13:get-directory0: 202 209 "get-directory", "" … … 206 213 Version: 2 207 214 Format: value is ignored 215 Replies: "failed", "not-supported", "downlimit" 208 216 Example: 13:get-downlimit0: 209 217 "get-downlimit", "" … … 213 221 Version: 2 214 222 Format: dict with keys "id" and "type" for lists of ints and strings 223 Replies: "failed", "not-supported", "info" 215 224 Example: 8:get-infod2:idli4ei7ei2ee4:typel4:hash4:nameee 216 225 "get-info", {"id": (4, 7, 2), "type": ("hash", "name")} … … 226 235 Version: 2 227 236 Format: list of strings 237 Replies: "failed", "not-supported", "info" 228 238 Example: 12:get-info-alll4:hash4:namee 229 239 "get-info-all", ("hash", "name") … … 233 243 Version: 2 234 244 Format: value is ignored 245 Replies: "failed", "not-supported", "pex" 235 246 Example: 7:get-pex0: 236 247 "get-pex", "" … … 240 251 Version: 2 241 252 Format: value is ignored 253 Replies: "failed", "not-supported", "port" 242 254 Example: 8:get-port0: 243 255 "get-port", "" … … 247 259 Version: 2 248 260 Format: dict with keys "id" and "type" for lists of ints and strings 261 Replies: "failed", "not-supported", "status" 249 262 Example: 10:get-statusd2:idli4ei7ei2ee4:typel5:state9:completedee 250 263 "get-status", {"id": (4, 7, 4), "type": ("state", "completed")} … … 255 268 Version: 2 256 269 Format: list of strings 270 Replies: "failed", "not-supported", "status" 257 271 Example: 14:get-status-alll5:state9:completede 258 272 "get-status-all", ("state", "completed") … … 262 276 Version: 2 263 277 Format: list of strings 278 Replies: "failed", "not-supported", "supported" 264 279 Example: 13:get-supportedl6:lookup8:get-port16:addfile-detailede 265 280 "get-supported", ("lookup", "get-port", "addfile-detailed") … … 270 285 Version: 2 271 286 Format: value is ignored 287 Replies: "failed", "not-supported", "uplimit" 272 288 Example: 11:get-uplimit0: 273 289 "get-uplimit", "" … … 277 293 Version: 2 278 294 Format: list of strings 295 Replies: "failed", "not-supported", "info" 279 296 Example: 6:lookupl40:0f16ea6965ee5133ea4dbb1e7f516e9fcf3d899ee 280 297 "lookup", ("0f16ea6965ee5133ea4dbb1e7f516e9fcf3d899e") … … 285 302 Version: 2 286 303 Format: list of dictionaries 304 Replies: N/A 287 305 Example: 4:infold2:idi3e4:name3:fooed2:idi9e4:name3:baree 288 306 "info", ({"id": 4, "name": "foo"}, {"id": 9, "name": "bar"}) … … 295 313 Version: 2 296 314 Format: value is ignored 315 Replies: "succeeded", "failed", "not-supported" 297 316 Example: 4:noop0: 298 317 "noop", "" … … 303 322 Version: 2 304 323 Format: value is ignored 324 Replies: N/A 305 325 Example: 13:not-supported0: 306 326 "not-supported", "" … … 311 331 Version: 2 312 332 Format: boolean 333 Replies: "succeeded", "failed", "not-supported" 313 334 Example: 3:pexi0e 314 335 "pex", 0 … … 318 339 Version: 2 319 340 Format: int between 0 and 65535 341 Replies: "succeeded", "failed", "not-supported" 320 342 Example: 4:porti9090e 321 343 "port", 9090 … … 326 348 Version: 1 327 349 Format: value is ignored 350 Replies: "succeeded", "failed", "not-supported" 328 351 Example: 4:quit0: 329 352 "quit", "" 330 Details: Cause the server to quit. 353 Details: Cause the server to quit. Note that the connection might be 354 closed without a response being sent. 331 355 332 356 Key: "remove" 333 357 Version: 2 334 358 Format: list of torrent ID ints 359 Replies: "succeeded", "failed", "not-supported" 335 360 Example: 5:removeli3ei8ei6ee 336 361 "remove", (3, 8, 6) … … 344 369 Version: 2 345 370 Format: value is ignored 371 Replies: "succeeded", "failed", "not-supported" 346 372 Example: 10:remove-all0: 347 373 "remove-all", "" … … 351 377 Version: 2 352 378 Format: list of torrent ID ints 379 Replies: "succeeded", "failed", "not-supported" 353 380 Example: 5:startli3ei8ei6ee 354 381 "start", (3, 8, 6) … … 358 385 Version: 2 359 386 Format: value is ignored 387 Replies: "succeeded", "failed", "not-supported" 360 388 Example: 9:start-all0: 361 389 "start-all", "" … … 365 393 Version: 2 366 394 Format: list of dictionaries 395 Replies: N/A 367 396 Example: 4:infold2:idi3e5:state7:seedinged2:idi9e5:state6:pausedee 368 397 "info", ({"id": 3, "state": "seeding"}, {"id": 9, "state" : "paused"}) … … 372 401 Version: 2 373 402 Format: list of torrent ID ints 403 Replies: "succeeded", "failed", "not-supported" 374 404 Example: 4:stopli3ei8ei6ee 375 405 "stop", (3, 8, 6) … … 379 409 Version: 2 380 410 Format: value is ignored 411 Replies: "succeeded", "failed", "not-supported" 381 412 Example: 8:stop-all0: 382 413 "stop-all", "" … … 386 417 Version: 2 387 418 Format: value is ignored 419 Replies: N/A 388 420 Example: 8:succeeded0: 389 421 "succeeded", "" … … 394 426 Version: 2 395 427 Format: list of strings 428 Replies: N/A 396 429 Example: 9:supportedl8:get-port6:lookupe 397 430 "supported", ("get-port", "lookup") … … 402 435 Version: 2 403 436 Format: int 437 Replies: "succeeded", "failed", "not-supported" 404 438 Example: 7:uplimiti20e 405 439 "uplimit", 20
Note: See TracChangeset
for help on using the changeset viewer.