Changeset 1736
- Timestamp:
- Apr 17, 2007, 8:14:02 PM (15 years ago)
- Location:
- branches/daemon/daemon
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/daemon/daemon/client.c
r1732 r1736 778 778 case IPC_MSG_DOWNLIMIT: 779 779 case IPC_MSG_UPLIMIT: 780 case IPC_MSG_PEX: 780 781 buf = ipc_mkint( &con->ipc, &buflen, req->id, -1, req->num ); 781 782 break; -
branches/daemon/daemon/ipcproto.txt
r1631 r1736 47 47 as described below. The version should be the first but not 48 48 necessarily only key in the dictionary. Any other keys should be 49 ignored and not processed as messages. 49 ignored and not processed as messages. Neither the client nor the 50 server should wait to receive a version message before sending one, it 51 must be sent immediately. No other messages should be sent until the 52 version is received. 50 53 51 54 The version value should be a bencoded dictionary containing two keys, … … 77 80 00000010l5:startli8eei15ee 78 81 00000011l8:succeeded0:i15ee 82 83 Some example sessions, including version handshake, are found at the 84 end of this file. 79 85 80 86 Dictionary keys are encoded in UTF-8 and case sensitive. Any character … … 417 423 "upload-speed" integer, upload speed in bytes per second 418 424 "upload-total" integer, total bytes uploaded so far 425 426 427 Examples: 428 429 Data from the client to the server is prefixed with >>> and from 430 server to client with <<<. These prefixes and newlines are added for 431 clarity, they are not actually sent over the socket. 432 433 Quit the server. Note that this is a version 1 client and so version 1 434 messages are used. The value for the quit message here is i0e instead 435 of 0: as used above, however since it it unused any value is allowed. 436 >>> 0000001Dd7:versiond3:mini1e3:maxi1eee 437 <<< 0000001Dd7:versiond3:mini1e3:maxi2eee 438 >>> 0000000Bd4:quiti0ee 439 440 Pause all torrents and disable automapping. Note the server happens to 441 have sendt it's version before the client. 442 <<< 0000001Dd7:versiond3:mini1e3:maxi2eee 443 >>> 0000001Dd7:versiond3:mini1e3:maxi2eee 444 >>> 0000000El8:stop-all0:e 445 446 Change upload and download limits with tagged responses. Note that the 447 server is allowed to return responses out of order, even when the 448 messages are not tagged. 449 >>> 0000001Dd7:versiond3:mini1e3:maxi2eee 450 <<< 0000001Dd7:versiond3:mini1e3:maxi2eee 451 >>> 00000017l9:downlimiti100ei100el 452 >>> 00000017l9:downlimiti100ei101el 453 <<< 00000014l8:succeeded0:i101el 454 <<< 00000014l8:succeeded0:i100el
Note: See TracChangeset
for help on using the changeset viewer.