view · edit · print · history

A BitTorrent client written in the C programming language. According its webpage, it is supposed to have the following features:

  • Programmed in pure C, which means small and lightning fast executables.
  • Has the ability to create new torrent-files (for seeding and sharing etc)
  • Uses very little CPU and memory resources.

Making CTorrent Work

Unfortunately, the ctorrent provided by ipkg does not work well. See here to see how to make it work properly: http://www.nslu2-linux.org/wiki/HowTo/SetupCTorrent


On the slug enter:

    ipkg update
    ipkg install ctorrent

More info http://ctorrent.sourceforge.net/


    Generic Options:
    -h/-H           Show this message.
    -x              Decode metainfo(torrent) file only, don't download.
    -c              Check exist only. don't download.

    Download Options:
    -e int          Exit while seed <int> hours later. (default 72 hours)
    -p port         Listen port. (default 2706 -> 2106)
    -s save_as      Save file/directory/metainfo as... 
    -C cache_size   Cache size,unit MB. (default 16MB)
    -f              Force seed mode. skip hash check at startup.
    -b bf_filename  Bit field filename. (use it carefully)
    -M max_peers    Max peers count.
    -m min_peers    Min peers count.
    -B rate         Max bandwidth (unit KB/s)
    -P peer_id      Set Peer ID [ - CT1304? - ]

    Make metainfo(torrent) file Options:
    -t              With make torrent. must specify this option.
    -u url          Tracker's url.
    -l piece_len    Piece length.(default 262144)

    # ctorrent -s new_filename -e 12 -C 32 -p 6881 eg.torrent

Running in Background

You can have CTorrent running in the background even after having exited the telnet session. To do so, you need to install coreutils package using

    ipkg install coreutils

and then use "nohup" command to run the command, ignoring all hangup (SIGHUP) signals.

    # nohup ctorrent -s new_filename -e 12 -C 32 -p 6881 eg.torrent > eg.log &
view · edit · print · history · Last edited by MattMcNeill.
Originally by GAPi.
Page last modified on November 16, 2006, at 01:19 AM