Changeset 1736


Ignore:
Timestamp:
Apr 17, 2007, 8:14:02 PM (15 years ago)
Author:
joshe
Message:

Fix -e and -E options to remote and add examples to proto doc.

Location:
branches/daemon/daemon
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/daemon/daemon/client.c

    r1732 r1736  
    778778            case IPC_MSG_DOWNLIMIT:
    779779            case IPC_MSG_UPLIMIT:
     780            case IPC_MSG_PEX:
    780781                buf = ipc_mkint( &con->ipc, &buflen, req->id, -1, req->num );
    781782                break;
  • branches/daemon/daemon/ipcproto.txt

    r1631 r1736  
    4747as described below. The version should be the first but not
    4848necessarily only key in the dictionary. Any other keys should be
    49 ignored and not processed as messages.
     49ignored and not processed as messages. Neither the client nor the
     50server should wait to receive a version message before sending one, it
     51must be sent immediately. No other messages should be sent until the
     52version is received.
    5053
    5154The version value should be a bencoded dictionary containing two keys,
     
    778000000010l5:startli8eei15ee
    788100000011l8:succeeded0:i15ee
     82
     83Some example sessions, including version handshake, are found at the
     84end of this file.
    7985
    8086Dictionary keys are encoded in UTF-8 and case sensitive. Any character
     
    417423"upload-speed"      integer, upload speed in bytes per second
    418424"upload-total"      integer, total bytes uploaded so far
     425
     426
     427Examples:
     428
     429Data from the client to the server is prefixed with >>> and from
     430server to client with <<<. These prefixes and newlines are added for
     431clarity, they are not actually sent over the socket.
     432
     433Quit the server. Note that this is a version 1 client and so version 1
     434messages are used. The value for the quit message here is i0e instead
     435of 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
     440Pause all torrents and disable automapping. Note the server happens to
     441have sendt it's version before the client.
     442<<< 0000001Dd7:versiond3:mini1e3:maxi2eee
     443>>> 0000001Dd7:versiond3:mini1e3:maxi2eee
     444>>> 0000000El8:stop-all0:e
     445
     446Change upload and download limits with tagged responses. Note that the
     447server is allowed to return responses out of order, even when the
     448messages 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.