struct tapi_ctorrent_opt

Overview

ctorrent specific options More…

#include <tapi_ctorrent.h>

struct tapi_ctorrent_opt {
    // fields

    unsigned int hours_to_seed;
    const char* ip;
    unsigned int port;
    const char* save_to_file;
    unsigned int max_peers;
    unsigned int min_peers;
    unsigned int download_rate;
    unsigned int upload_rate;
    const char* metainfo_file;
};

Detailed Documentation

ctorrent specific options

Fields

unsigned int hours_to_seed

Seeding duration (in hours, 72 by default)

const char* ip

IP to listen on (all by default)

unsigned int port

TCP port to listen on

const char* save_to_file

Save downloaded data to the specified file. By default, the data will be saved to a file with the same name as an original file had.

unsigned int max_peers

Max peers count (100 by default)

unsigned int min_peers

Min peers count (1 by default)

unsigned int download_rate

Max download bandwidth (in KBps (not Kbps))

unsigned int upload_rate

Max upload bandwidth (in KBps)

const char* metainfo_file

Metainfo file to download/seed (required)