Changeset 11599


Ignore:
Timestamp:
Dec 27, 2010, 7:18:17 PM (10 years ago)
Author:
charles
Message:

(trunk) Join the 21st century and use only 1 space at the end sentences. This commit is nearly as important as the semi-annual ones that remove trailing spaces from the ends of lines of code... :)

Location:
trunk
Files:
130 edited

Legend:

Unmodified
Added
Removed
  • trunk/daemon/daemon.c

    r11590 r11599  
    8787{
    8888
    89     { 'a', "allowed", "Allowed IP addresses.  (Default: " TR_DEFAULT_RPC_WHITELIST ")", "a", 1, "<list>" },
     89    { 'a', "allowed", "Allowed IP addresses. (Default: " TR_DEFAULT_RPC_WHITELIST ")", "a", 1, "<list>" },
    9090    { 'b', "blocklist", "Enable peer blocklists", "b", 0, NULL },
    9191    { 'B', "no-blocklist", "Disable peer blocklists", "B", 0, NULL },
  • trunk/daemon/remote.c

    r11598 r11599  
    298298    { 'v', "verify",                 "Verify the current torrent(s)", "v",  0, NULL },
    299299    { 'V', "version",                "Show version number and exit", "V", 0, NULL },
    300     { 'w', "download-dir",           "When adding a new torrent, set its download folder.  Otherwise, set the default download folder", "w",  1, "<path>" },
     300    { 'w', "download-dir",           "When adding a new torrent, set its download folder. Otherwise, set the default download folder", "w",  1, "<path>" },
    301301    { 'x', "pex",                    "Enable peer exchange (PEX)", "x",  0, NULL },
    302302    { 'X', "no-pex",                 "Disable peer exchange (PEX)", "X",  0, NULL },
     
    17331733                break;
    17341734            case 409:
    1735                 /* session id failed.  our curl header func has already
    1736                 * pulled the new session id from this response's headers,
    1737                 * build a new CURL* and try again */
     1735                /* Session id failed. Our curl header func has already
     1736                 * pulled the new session id from this response's headers,
     1737                 * build a new CURL* and try again */
    17381738                curl_easy_cleanup( curl );
    17391739                curl = NULL;
  • trunk/daemon/watch.h

    r9868 r11599  
    55 * This file Copyright (C) 2009-2010 Mnemosyne LLC
    66 *
    7  * This file is licensed by the GPL version 2.  Works owned by the
     7 * This file is licensed by the GPL version 2. Works owned by the
    88 * Transmission project are granted a special exemption to clause 2(b)
    99 * so that the bulk of its code can remain under the MIT license.
  • trunk/gtk/actions.c

    r11572 r11599  
    22 * This file Copyright (C) 2007-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/gtk/actions.h

    r11563 r11599  
    22 * This file Copyright (C) 2007-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/gtk/add-dialog.c

    r11596 r11599  
    22 * This file Copyright (C) 2008-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/gtk/add-dialog.h

    r11563 r11599  
    22 * This file Copyright (C) 2008-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/gtk/details.c

    r11572 r11599  
    22 * This file Copyright (C) 2007-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/gtk/details.h

    r11563 r11599  
    22 * This file Copyright (C) 2007-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/gtk/favicon.c

    r10512 r11599  
    22 * This file Copyright (C) 2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/gtk/favicon.h

    r10512 r11599  
    22 * This file Copyright (C) 2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/gtk/file-list.c

    r11572 r11599  
    22 * This file Copyright (C) 2007-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
     
    127127        {
    128128            /* Changing a value in the sort column can trigger a resort
    129              * which breaks this foreach() call.  (See #3529)
     129             * which breaks this foreach() call. (See #3529)
    130130             * As a workaround: if that's about to happen, temporarily disable
    131131             * sorting until we finish walking the tree. */
  • trunk/gtk/file-list.h

    r11572 r11599  
    22 * This file Copyright (C) 2009-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/gtk/filter.c

    r11519 r11599  
    22 * This file Copyright (C) 2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
     
    138138    g_object_steal_data( o, DIRTY_KEY );
    139139
    140     /* walk through all the torrents, tallying how many matches there are
    141      * for the various categories.  also make a sorted list of all tracker
     140    /* Walk through all the torrents, tallying how many matches there are
     141     * for the various categories. Also make a sorted list of all tracker
    142142     * hosts s.t. we can merge it with the existing list */
    143143    if( gtk_tree_model_get_iter_first( tmodel, &iter )) do
  • trunk/gtk/filter.h

    r10388 r11599  
    22 * This file Copyright (C) 2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/gtk/hig.c

    r11562 r11599  
    22 * This file Copyright (C) 2007-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/gtk/hig.h

    r11563 r11599  
    22 * This file Copyright (C) 2007-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/gtk/main.c

    r11589 r11599  
    7777"The Transmission daemon, GTK+ client, Qt client, Web client, and most of libtransmission are licensed under the terms of the GNU GPL version 2, with two special exceptions:\n\n"
    7878"1. The MIT-licensed portions of Transmission listed above are exempt from GPLv2 clause 2(b) and may retain their MIT license.\n\n"
    79 "2. Permission is granted to link the code in this release with the OpenSSL project's 'OpenSSL' library and to distribute the linked executables.  Works derived from Transmission may, at their authors' discretion, keep or delete this exception.";
     79"2. Permission is granted to link the code in this release with the OpenSSL project's 'OpenSSL' library and to distribute the linked executables. Works derived from Transmission may, at their authors' discretion, keep or delete this exception.";
    8080#endif
    8181
     
    438438        case SIGINT:
    439439        case SIGTERM:
    440             g_message( _( "Got signal %d; trying to shut down cleanly.  Do it again if it gets stuck." ), sig );
     440            g_message( _( "Got signal %d; trying to shut down cleanly. Do it again if it gets stuck." ), sig );
    441441            gtr_actions_handler( "quit", sighandler_cbdata );
    442442            break;
     
    589589    /* Both libcurl and GNOME have hooks for proxy support.
    590590     * If someone has set the http_proxy environment variable,
    591      * don't apply the GNOME settings here.  That way libcurl can override GNOME. */
     591     * don't apply the GNOME settings here. That way libcurl can override GNOME. */
    592592    if( !env_checked ) {
    593593        const char * str = g_getenv( "http_proxy" );
     
    808808        err = NULL;
    809809        if( !gtr_dbus_present_window( ) )
    810             err = g_strdup( _( "Transmission is already running, but is not responding.  To start a new session, you must first close the existing Transmission process." ) );
     810            err = g_strdup( _( "Transmission is already running, but is not responding. To start a new session, you must first close the existing Transmission process." ) );
    811811    }
    812812
     
    946946                                                GTK_BUTTONS_NONE,
    947947                                                "%s",
    948              _( "Transmission is a file-sharing program.  When you run a torrent, its data will be made available to others by means of upload. You and you alone are fully responsible for exercising proper judgement and abiding by your local laws." ) );
     948             _( "Transmission is a file-sharing program. When you run a torrent, its data will be made available to others by means of upload. You and you alone are fully responsible for exercising proper judgement and abiding by your local laws." ) );
    949949        gtk_dialog_add_button( GTK_DIALOG( w ), GTK_STOCK_QUIT, GTK_RESPONSE_REJECT );
    950950        gtk_dialog_add_button( GTK_DIALOG( w ), _( "I _Accept" ), GTK_RESPONSE_ACCEPT );
  • trunk/gtk/makemeta-ui.c

    r11596 r11599  
    22 * This file Copyright (C) 2007-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/gtk/makemeta-ui.h

    r11563 r11599  
    22 * This file Copyright (C) 2007-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/gtk/msgwin.c

    r11572 r11599  
    22 * This file Copyright (C) 2008-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
     
    233233            title = _( "Time" ); break;
    234234
    235         /* noun.  column title for a list */
     235        /* noun. column title for a list */
    236236        case COL_NAME:
    237237            title = _( "Name" ); break;
    238238
    239         /* noun.  column title for a list */
     239        /* noun. column title for a list */
    240240        case COL_MESSAGE:
    241241            title = _( "Message" ); break;
  • trunk/gtk/msgwin.h

    r11572 r11599  
    22 * This file Copyright (C) 2008-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/gtk/notify.c

    r11572 r11599  
    22 * This file Copyright (C) 2008-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/gtk/notify.h

    r11563 r11599  
    22 * This file Copyright (C) 2008-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/gtk/relocate.c

    r11596 r11599  
    22 * This file Copyright (C) 2009-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/gtk/relocate.h

    r11280 r11599  
    22 * This file Copyright (C) 2009-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/gtk/stats.c

    r11596 r11599  
    22 * This file Copyright (C) 2007-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
     
    106106    {
    107107        const char * primary = _( "Reset your statistics?" );
    108         const char * secondary = _( "These statistics are for your information only.  "
     108        const char * secondary = _( "These statistics are for your information only. "
    109109                                    "Resetting them doesn't affect the statistics logged by your BitTorrent trackers." );
    110110        const int flags = GTK_DIALOG_DESTROY_WITH_PARENT
  • trunk/gtk/stats.h

    r11563 r11599  
    22 * This file Copyright (C) 2007-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/gtk/torrent-cell-renderer.c

    r11589 r11599  
    22 * This file Copyright (C) 2007-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
     
    333333    int bar_height;
    334334
    335     /* use this instead of tr_stat.pieceUploadSpeed so that the model can
    336        control when the speed displays get updated.  this is done to keep
     335    /* Use this instead of tr_stat.pieceUploadSpeed so that the model can
     336       control when the speed displays get updated. This is done to keep
    337337       the individual torrents' speeds and the status bar's overall speed
    338338       in sync even if they refresh at slightly different times */
  • trunk/gtk/torrent-cell-renderer.h

    r11563 r11599  
    22 * This file Copyright (C) 2007-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/gtk/tr-icon.c

    r11563 r11599  
    22 * This file Copyright (C) 2007-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/gtk/tr-icon.h

    r11563 r11599  
    22 * This file Copyright (C) 2007-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/gtk/tr-prefs.c

    r11572 r11599  
    22 * This file Copyright (C) 2007-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/gtk/tr-prefs.h

    r11563 r11599  
    22 * This file Copyright (C) 2007-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/gtk/tr-window.c

    r11589 r11599  
    176176        g_object_set( p->renderer, "compact", gtr_pref_flag_get( key ), NULL );
    177177        /* since the cell size has changed, we need gtktreeview to revalidate
    178          * its fixed-height mode values.  Unfortunately there's not an API call
     178         * its fixed-height mode values. Unfortunately there's not an API call
    179179         * for that, but it *does* revalidate when it thinks the style's been tweaked */
    180180        g_signal_emit_by_name( p->view, "style-set", NULL, NULL );
     
    785785        tr_strlsize( up, stats.uploadedBytes, sizeof( up ) );
    786786        tr_strlsize( down, stats.downloadedBytes, sizeof( down ) );
    787         /* Translators: "size|" is here for disambiguation.  Please remove it from your translation.
     787        /* Translators: "size|" is here for disambiguation. Please remove it from your translation.
    788788           %1$s is the size of the data we've downloaded
    789789           %2$s is the size of the data we've uploaded */
     
    796796        tr_strlsize( up, stats.uploadedBytes, sizeof( up ) );
    797797        tr_strlsize( down, stats.downloadedBytes, sizeof( down ) );
    798         /* Translators: "size|" is here for disambiguation.  Please remove it from your translation.
     798        /* Translators: "size|" is here for disambiguation. Please remove it from your translation.
    799799           %1$s is the size of the data we've downloaded
    800800           %2$s is the size of the data we've uploaded */
  • trunk/gtk/transmission-gtk.1

    r11541 r11599  
    6363Sets the default config-dir.
    6464.It Ev http_proxy
    65 libcurl uses this environment variable when performing tracker announces.  If set, this overrides the GNOME proxy preferences.
     65libcurl uses this environment variable when performing tracker announces. If set, this overrides the GNOME proxy preferences.
    6666.El
    6767.Sh FILES
  • trunk/gtk/util.c

    r11591 r11599  
    22 * This file Copyright (C) 2008-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
     
    906906    {
    907907        g_string_append_printf( gstr, "\n \n" );
    908         g_string_append_printf( gstr, _( "This magnet link appears to be intended for something other than BitTorrent.  BitTorrent magnet links have a section containing \"%s\"." ), xt );
     908        g_string_append_printf( gstr, _( "This magnet link appears to be intended for something other than BitTorrent. BitTorrent magnet links have a section containing \"%s\"." ), xt );
    909909    }
    910910
  • trunk/gtk/util.h

    r11589 r11599  
    22 * This file Copyright (C) 2008-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/ConvertUTF.c

    r8391 r11599  
    194194/*
    195195 * Once the bits are split out into bytes of UTF-8, this is a mask OR-ed
    196  * into the first byte, depending on how many bytes follow.  There are
     196 * into the first byte, depending on how many bytes follow. There are
    197197 * as many entries in this table as there are UTF-8 sequence types.
    198198 * (I.e., one byte sequence, two byte... etc.). Remember that sequencs
     
    290290 * and the sequence is illegal right away if there aren't that many bytes
    291291 * available.
    292  * If presented with a length > 4, this returns false.  The Unicode
     292 * If presented with a length > 4, this returns false. The Unicode
    293293 * definition of UTF-8 goes up to 4-byte sequences.
    294294 */
     
    588588    Note A.
    589589    The fall-through switches in UTF-8 reading code save a
    590     temp variable, some decrements & conditionals.  The switches
     590    temp variable, some decrements & conditionals. The switches
    591591    are equivalent to the following loop:
    592592        {
  • trunk/libtransmission/ConvertUTF.h

    r7748 r11599  
    3030/* ---------------------------------------------------------------------
    3131
    32     Conversions between UTF32, UTF-16, and UTF-8.  Header file.
     32    Conversions between UTF32, UTF-16, and UTF-8. Header file.
    3333
    3434    Several funtions are included here, forming a complete set of
    35     conversions between the three formats.  UTF-7 is not included
     35    conversions between the three formats. UTF-7 is not included
    3636    here, but is handled in a separate source file.
    3737
    3838    Each of these routines takes pointers to input buffers and output
    39     buffers.  The input buffers are const.
     39    buffers. The input buffers are const.
    4040
    4141    Each routine converts the text between *sourceStart and sourceEnd,
     
    6262    These conversion functions take a ConversionFlags argument. When this
    6363    flag is set to strict, both irregular sequences and isolated surrogates
    64     will cause an error.  When the flag is set to lenient, both irregular
     64    will cause an error. When the flag is set to lenient, both irregular
    6565    sequences and isolated surrogates are converted.
    6666
     
    7676    Output parameters:
    7777        The value "sourceIllegal" is returned from some routines if the input
    78         sequence is malformed.  When "sourceIllegal" is returned, the source
     78        sequence is malformed. When "sourceIllegal" is returned, the source
    7979        value will point to the illegal value that caused the problem. E.g.,
    8080        in UTF-8 when a sequence is malformed, it points to the start of the
    81         malformed sequence.  
     81        malformed sequence.
    8282
    8383    Author: Mark E. Davis, 1994.
  • trunk/libtransmission/JSON_parser.h

    r10814 r11599  
    6666
    6767    \param ctx The pointer passed to new_JSON_parser.
    68     \param type An element of JSON_type but not JSON_T_NONE.   
     68    \param type An element of JSON_type but not JSON_T_NONE.
    6969    \param value A representation of the parsed value. This parameter is NULL for
    7070        JSON_T_ARRAY_BEGIN, JSON_T_ARRAY_END, JSON_T_OBJECT_BEGIN, JSON_T_OBJECT_END,
  • trunk/libtransmission/announcer.c

    r11588 r11599  
    22 * This file Copyright (C) 2009-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
     
    772772
    773773       To be safe, we should do both: add the "ipv6=" parameter and
    774        announce twice.  At any rate, we're already computing our IPv6
     774       announce twice. At any rate, we're already computing our IPv6
    775775       address (for the LTEP handshake), so this comes for free. */
    776776
     
    14521452        {
    14531453            /* 404: The requested resource could not be found but may be
    1454              * available again in the future.  Subsequent requests by
     1454             * available again in the future. Subsequent requests by
    14551455             * the client are permissible. */
    14561456
     
    18901890                rc = tr_dhtAnnounce(tor, AF_INET, 1);
    18911891                if(rc == 0)
    1892                     /* The DHT is not ready yet.  Try again soon. */
     1892                    /* The DHT is not ready yet. Try again soon. */
    18931893                    tor->dhtAnnounceAt = now + 5 + tr_cryptoWeakRandInt( 5 );
    18941894                else
  • trunk/libtransmission/announcer.h

    r11280 r11599  
    22 * This file Copyright (C) 2009-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
     
    5050    int              compactLen;
    5151
    52     /* [0...100] for probability a peer is a seed.  calculated by the leecher/seeder ratio */
     52    /* [0...100] for probability a peer is a seed. calculated by the leecher/seeder ratio */
    5353    int8_t           seedProbability;
    5454}
  • trunk/libtransmission/bandwidth.c

    r11349 r11599  
    22 * This file Copyright (C) 2008-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
     
    206206    struct tr_peerIo ** peers = (struct tr_peerIo**) tr_ptrArrayBase( peerArray );
    207207
    208     /* First phase of IO.  Tries to distribute bandwidth fairly to keep faster
    209      * peers from starving the others.  Loop through the peers, giving each a
    210      * small chunk of bandwidth.  Keep looping until we run out of bandwidth
     208    /* First phase of IO. Tries to distribute bandwidth fairly to keep faster
     209     * peers from starving the others. Loop through the peers, giving each a
     210     * small chunk of bandwidth. Keep looping until we run out of bandwidth
    211211     * and/or peers that can use it */
    212212    n = peerCount;
     
    268268    }
    269269
    270     /* First phase of IO.  Tries to distribute bandwidth fairly to keep faster
    271      * peers from starving the others.  Loop through the peers, giving each a
    272      * small chunk of bandwidth.  Keep looping until we run out of bandwidth
     270    /* First phase of IO. Tries to distribute bandwidth fairly to keep faster
     271     * peers from starving the others. Loop through the peers, giving each a
     272     * small chunk of bandwidth. Keep looping until we run out of bandwidth
    273273     * and/or peers that can use it */
    274274    phaseOne( &high, dir );
     
    276276    phaseOne( &low, dir );
    277277
    278     /* Second phase of IO.  To help us scale in high bandwidth situations,
     278    /* Second phase of IO. To help us scale in high bandwidth situations,
    279279     * enable on-demand IO for peers with bandwidth left to burn.
    280280     * This on-demand IO is enabled until (1) the peer runs out of bandwidth,
  • trunk/libtransmission/bandwidth.h

    r11349 r11599  
    22 * This file Copyright (C) 2008-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
     
    7575 *
    7676 *   tr_session also owns a tr_handshake's bandwidths, so that the handshake
    77  *   I/O can be counted in the global raw totals.  When the handshake is done,
     77 *   I/O can be counted in the global raw totals. When the handshake is done,
    7878 *   the bandwidth's ownership passes to a tr_peer.
    7979 *
     
    8181 *
    8282 *   When you ask a bandwidth object for its speed, it gives the speed of the
    83  *   subtree underneath it as well.  So you can get Transmission's overall
     83 *   subtree underneath it as well. So you can get Transmission's overall
    8484 *   speed by quering tr_session's bandwidth, per-torrent speeds by asking
    8585 *   tr_torrent's bandwidth, and per-peer speeds by asking tr_peer's bandwidth.
     
    8787 * CONSTRAINING
    8888 *
    89  *   Call tr_bandwidthAllocate() periodically.  tr_bandwidth knows its current
     89 *   Call tr_bandwidthAllocate() periodically. tr_bandwidth knows its current
    9090 *   speed and will decide how many bytes to make available over the
    9191 *   user-specified period to reach the user-specified desired speed.
  • trunk/libtransmission/bencode.c

    r11564 r11599  
    22 * This file Copyright (C) 2008-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/bencode.h

    r10783 r11599  
    22 * This file Copyright (C) 2008-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
     
    2828 * integers, strings, lists, dictionaries, booleans, and floating-point numbers.
    2929 * The structure is named tr_benc due to the historical reason that it was
    30  * originally tightly coupled with bencoded data.  It currently supports
     30 * originally tightly coupled with bencoded data. It currently supports
    3131 * being parsed from, and serialized to, both bencoded notation and json notation.
    3232 *
     
    249249**/
    250250
    251 /* this is only quasi-supported.  don't rely on it too heavily outside of libT */
     251/* this is only quasi-supported. don't rely on it too heavily outside of libT */
    252252void  tr_bencMergeDicts( tr_benc * target, const tr_benc * source );
    253253
  • trunk/libtransmission/bitfield.c

    r11299 r11599  
    22 * This file Copyright (C) 2009-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/bitfield.h

    r11280 r11599  
    22 * This file Copyright (C) 2009-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
     
    6565
    6666/** A stripped-down version of bitfieldHas to be used
    67     for speed when you're looping quickly.  This version
     67    for speed when you're looping quickly. This version
    6868    has none of tr_bitfieldHas()'s safety checks, so you
    6969    need to call tr_bitfieldTestFast() first before you
  • trunk/libtransmission/bitset.h

    r11299 r11599  
    22 * This file Copyright (C) 2009-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/blocklist.c

    r11398 r11599  
    22 * This file Copyright (C) 2008-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/blocklist.h

    r10920 r11599  
    22 * This file Copyright (C) 2008-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/cache.c

    r11398 r11599  
    22 * This file Copyright (C) 2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/cache.h

    r11090 r11599  
    22 * This file Copyright (C) 2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/clients.c

    r10930 r11599  
    22 * This file Copyright (C) 2008-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/clients.h

    r9965 r11599  
    22 * This file Copyright (C) 2009-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/completion.c

    r10912 r11599  
    22 * This file Copyright (C) 2009-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/completion.h

    r11013 r11599  
    22 * This file Copyright (C) 2009-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/crypto.c

    r11333 r11599  
    11/* * This file Copyright (C) 2007-2010 Mnemosyne LLC
    22 *
    3  * This file is licensed by the GPL version 2.  Works owned by the
     3 * This file is licensed by the GPL version 2. Works owned by the
    44 * Transmission project are granted a special exemption to clause 2(b)
    55 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/crypto.h

    r9965 r11599  
    22 * This file Copyright (C) 2007-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/fdlimit.c

    r11544 r11599  
    22 * This file Copyright (C) 2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
     
    426426     *
    427427     * 2. Disable OS-level caching due to user reports of adverse effects of
    428      *    excessive inactive memory.  However this is experimental because
     428     *    excessive inactive memory. However this is experimental because
    429429     *    previous attempts at this have *also* had adverse effects (see r8198)
    430430     *
     
    551551    }
    552552
    553     dbgmsg( "it's not already open.  looking for an open slot or an old file." );
     553    dbgmsg( "it's not already open. looking for an open slot or an old file." );
    554554    while( winner < 0 )
    555555    {
  • trunk/libtransmission/fdlimit.h

    r11544 r11599  
    22 * This file Copyright (C) 2007-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/handshake.c

    r11588 r11599  
    22 * This file Copyright (C) 2007-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
     
    616616    handshake->haveReadAnythingFromPeer = TRUE;
    617617
    618     pstrlen = evbuffer_pullup( inbuf, 1 )[0]; /* peek, don't read.  We may be
     618    pstrlen = evbuffer_pullup( inbuf, 1 )[0]; /* peek, don't read. We may be
    619619                                                 handing inbuf to AWAITING_YA */
    620620
  • trunk/libtransmission/handshake.h

    r10500 r11599  
    22 * This file Copyright (C) 2007-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/history.c

    r11542 r11599  
    22 * This file Copyright (C) 2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/history.h

    r11522 r11599  
    22 * This file Copyright (C) 2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/inout.c

    r11313 r11599  
    22 * This file Copyright (C) 2007-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/inout.h

    r10273 r11599  
    22 * This file Copyright (C) 2008-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/json.c

    r10662 r11599  
    22 * This file Copyright (C) 2008-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/json.h

    r9868 r11599  
    22 * This file Copyright (C) 2008-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
     
    1818
    1919/** @ingroup tr_benc */
    20 int tr_jsonParse( const char * source, /* such as a filename.  only when logging an error */
     20int tr_jsonParse( const char * source, /* Such as a filename. Only when logging an error */
    2121                  const void *     vbuf,
    2222                  size_t           len,
  • trunk/libtransmission/list.c

    r11023 r11599  
    22 * This file Copyright (C) 2007-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/list.h

    r11522 r11599  
    22 * This file Copyright (C) 2007-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
     
    8383 * @param list pointer to the list
    8484 * @param b the comparison key
    85  * @param compare_func the comparison function.  The arguments passed to it will be the list's pointers and the comparison key "b"
     85 * @param compare_func the comparison function. The arguments passed to it will be the list's pointers and the comparison key "b"
    8686 * @return the removed data pointer, or NULL if no match was found
    8787 */
     
    9494 * @param list pointer to the list
    9595 * @param b the comparison key
    96  * @param compare_func the comparison function.  The arguments passed to it will be the list's pointers and the comparison key "b"
     96 * @param compare_func the comparison function. The arguments passed to it will be the list's pointers and the comparison key "b"
    9797 * @return the matching list node, or NULL if not match was found
    9898 */
  • trunk/libtransmission/magnet.c

    r11350 r11599  
    22 * This file Copyright (C) 2009-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
     
    2525
    2626/* this base32 code converted from code by Robert Kaye and Gordon Mohr
    27  * and is public domain.  see http://bitzi.com/publicdomain for more info */
     27 * and is public domain. see http://bitzi.com/publicdomain for more info */
    2828
    2929static const int base32Lookup[] =
  • trunk/libtransmission/magnet.h

    r11280 r11599  
    22 * This file Copyright (C) 2009-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/makemeta.c

    r11490 r11599  
    22 * This file Copyright (C) 2007-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/makemeta.h

    r10970 r11599  
    22 * This file Copyright (C) 2007-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/metainfo.c

    r11548 r11599  
    22 * This file Copyright (C) 2009-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
     
    256256     * it will be taken as a sign that that tracker doesn't support
    257257     * the scrape convention. If it does, substitute 'scrape' for
    258      * 'announce' to find the scrape page.  */
     258     * 'announce' to find the scrape page. */
    259259    if( ( ( s = strrchr( announce, '/' ) ) ) && !strncmp( ++s, "announce", 8 ) )
    260260    {
  • trunk/libtransmission/metainfo.h

    r10774 r11599  
    22 * This file Copyright (C) 2009-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/natpmp.c

    r11391 r11599  
    22 * This file Copyright (C) 2007-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
     
    7272        tr_ndbg(
    7373             getKey( ),
    74             "%s failed.  natpmp returned %d (%s); errno is %d (%s)",
     74            "%s failed. Natpmp returned %d (%s); errno is %d (%s)",
    7575            func, ret, strnatpmperr( ret ), errno, tr_strerror( errno ) );
    7676}
  • trunk/libtransmission/natpmp.h

    r10945 r11599  
    22 * This file Copyright (C) 2007-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/net.c

    r11588 r11599  
    484484   unbreaking the double-stack Internet. */
    485485
    486 /* Get the source address used for a given destination address.  Since
     486/* Get the source address used for a given destination address. Since
    487487   there is no official interface to get this information, we create
    488488   a connected UDP socket (connected UDP... hmm...) and check its source
     
    669669                    (address[15] == 0 || address[15] == 1)) ||
    670670                   /* Addresses outside of 2000::/3 are currently reserved,
    671                       but might be allocated at some future time.  Since
     671                      but might be allocated at some future time. Since
    672672                      there are a lot of buggy peers pushing around such
    673673                      addresses over PEX, we reject them until the end of
  • trunk/libtransmission/peer-common.h

    r11522 r11599  
    22 * This file Copyright (C) 2008-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/peer-io.c

    r11588 r11599  
    22 * This file Copyright (C) 2007-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/peer-io.h

    r11548 r11599  
    22 * This file Copyright (C) 2007-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/peer-mgr.c

    r11588 r11599  
    22 * This file Copyright (C) 2007-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
     
    113113/**
    114114 * Peer information that should be kept even before we've connected and
    115  * after we've disconnected.  These are kept in a pool of peer_atoms to decide
     115 * after we've disconnected. These are kept in a pool of peer_atoms to decide
    116116 * which ones would make good candidates for connecting to, and to watch out
    117117 * for banned peers.
     
    525525    deleteTimers( manager );
    526526
    527     /* free the handshakes.  Abort invokes handshakeDoneCB(), which removes
     527    /* free the handshakes. Abort invokes handshakeDoneCB(), which removes
    528528     * the item from manager->handshakes, so this is a little roundabout... */
    529529    while( !tr_ptrArrayEmpty( &manager->incomingHandshakes ) )
     
    641641***
    642642*** 2. Torrent::pieces, an array of "struct weighted_piece" which lists the
    643 ***    pieces that we want to request.  It's used to decide which blocks to
     643***    pieces that we want to request. It's used to decide which blocks to
    644644***    return next when tr_peerMgrGetBlockRequests() is called.
    645645**/
     
    14781478
    14791479                        /* only add this to downloadedCur if we got it from a peer --
    1480                          * webseeds shouldn't count against our ratio.  As one tracker
     1480                         * webseeds shouldn't count against our ratio. As one tracker
    14811481                         * admin put it, "Those pieces are downloaded directly from the
    14821482                         * content distributor, not the peers, it is the tracker's job
     
    20952095    tr_ptrArrayClear( &t->peers );
    20962096
    2097     /* disconnect the handshakes.  handshakeAbort calls handshakeDoneCB(),
     2097    /* disconnect the handshakes. handshakeAbort calls handshakeDoneCB(),
    20982098     * which removes the handshake from t->outgoingHandshakes... */
    20992099    while( !tr_ptrArrayEmpty( &t->outgoingHandshakes ) )
     
    29612961
    29622962    /* if we transferred piece data, then they might be good peers,
    2963        so reset their `numFails' weight to zero.  otherwise we connected
     2963       so reset their `numFails' weight to zero. otherwise we connected
    29642964       to them fruitlessly, so mark it as another fail */
    29652965    if( atom->piece_data_time ) {
     
    33753375            return FALSE;
    33763376
    3377     /* not if we've already got a connection to them...  */
     3377    /* not if we've already got a connection to them... */
    33783378    if( peerIsInUse( tor->torrentPeers, atom ) )
    33793379        return FALSE;
  • trunk/libtransmission/peer-mgr.h

    r11532 r11599  
    22 * This file Copyright (C) 2007-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/peer-msgs.c

    r11588 r11599  
    22 * This file Copyright (C) 2007-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
     
    225225
    226226    /* if the peer supports the Extension Protocol in BEP 10 and
    227        supplied a reqq argument, it's stored here.  otherwise the
     227       supplied a reqq argument, it's stored here. Otherwise, the
    228228       value is zero and should be ignored. */
    229229    int64_t               reqq;
     
    19081908            evbuffer_commit_space( out, iovec, 1 );
    19091909
     1910            /* if we couldn't load a piece we thought we could load... */
     1911            if( err )
     1912                tr_torrentSetLocalError( msgs->torrent, _( "Couldn't read piece #%zu from disk! Please Verify Local Data." ), (size_t)req.index );
     1913
    19101914            /* check the piece if it needs checking... */
    19111915            if( !err && tr_torrentPieceNeedsCheck( msgs->torrent, req.index ) )
    19121916                if(( err = !tr_torrentCheckPiece( msgs->torrent, req.index )))
    1913                     tr_torrentSetLocalError( msgs->torrent, _( "Piece #%zu is corrupt!  Please Verify Local Data." ), (size_t)req.index );
     1917                    tr_torrentSetLocalError( msgs->torrent, _( "Piece #%zu is corrupt! Please Verify Local Data." ), (size_t)req.index );
    19141918
    19151919            if( err )
  • trunk/libtransmission/peer-msgs.h

    r10800 r11599  
    22 * This file Copyright (C) 2007-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/platform.c

    r11227 r11599  
    22 * This file Copyright (C) 2008-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/platform.h

    r11126 r11599  
    22 * This file Copyright (C) 2009-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/port-forwarding.c

    r11588 r11599  
    22 * This file Copyright (C) 2008-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
     
    112112
    113113        case TR_PORT_ERROR:
    114             /* some kind of an error.  wait 60 seconds and retry */
     114            /* some kind of an error. wait 60 seconds and retry */
    115115            sec = 60;
    116116            break;
    117117
    118118        default:
    119             /* in progress.  pulse frequently. */
     119            /* in progress. pulse frequently. */
    120120            msec = 333000;
    121121            break;
  • trunk/libtransmission/port-forwarding.h

    r9868 r11599  
    22 * This file Copyright (C) 2008-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/ptrarray.c

    r11398 r11599  
    22 * This file Copyright (C) 2008-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/ptrarray.h

    r10798 r11599  
    22 * This file Copyright (C) 2008-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/resume.c

    r11583 r11599  
    22 * This file Copyright (C) 2008-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
     
    222222        tr_tordbg(
    223223            tor,
    224             "Couldn't load DND flags.  dnd list (%p) has %zu children; torrent has %d files",
     224            "Couldn't load DND flags. DND list (%p) has %zu children; torrent has %d files",
    225225            list, tr_bencListSize( list ), (int)n );
    226226    }
  • trunk/libtransmission/resume.h

    r11583 r11599  
    22 * This file Copyright (C) 2008-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/rpc-server.c

    r11588 r11599  
    22 * This file Copyright (C) 2008-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
     
    617617                "<p>Either disable the IP address whitelist or add your address to it.</p>"
    618618                "<p>If you're editing settings.json, see the 'rpc-whitelist' and 'rpc-whitelist-enabled' entries.</p>"
    619                 "<p>If you're still using ACLs, use a whitelist instead.  See the transmission-daemon manpage for details.</p>" );
     619                "<p>If you're still using ACLs, use a whitelist instead. See the transmission-daemon manpage for details.</p>" );
    620620        }
    621621        else if( server->isPasswordEnabled
  • trunk/libtransmission/rpc-server.h

    r11524 r11599  
    22 * This file Copyright (C) 2008-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/rpcimpl.c

    r11588 r11599  
    22 * This file Copyright (C) 2008-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
     
    456456}
    457457
    458 /* faster-than-strcmp() optimization.  this is kind of clumsy,
     458/* faster-than-strcmp() optimization. This is kind of clumsy,
    459459   but addField() was in the profiler's top 10 list, and this
    460460   makes it 4x faster... */
  • trunk/libtransmission/rpcimpl.h

    r11548 r11599  
    22 * This file Copyright (C) 2008-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/session.c

    r11588 r11599  
    22 * This file Copyright (C) 2008-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
     
    458458/**
    459459 * Periodically save the .resume files of any torrents whose
    460  * status has recently changed.  This prevents loss of metadata
     460 * status has recently changed. This prevents loss of metadata
    461461 * in the case of a crash, unclean shutdown, clumsy user, etc.
    462462 */
     
    16771677    tr_rpcClose( &session->rpcServer );
    16781678
    1679     /* close the torrents.  get the most active ones first so that
     1679    /* Close the torrents. Get the most active ones first so that
    16801680     * if we can't get them all closed in a reasonable amount of time,
    16811681     * at least we get the most important ones first. */
  • trunk/libtransmission/session.h

    r11588 r11599  
    22 * This file Copyright (C) 2008-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/stats.c

    r9973 r11599  
    22 * This file Copyright (C) 2007-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/stats.h

    r9868 r11599  
    22 * This file Copyright (C) 2007-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/torrent-ctor.c

    r10531 r11599  
    22 * This file Copyright (C) 2007-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/torrent-magnet.c

    r11548 r11599  
    22 * This file Copyright (C) 2009-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/torrent-magnet.h

    r11280 r11599  
    22 * This file Copyright (C) 2009-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/torrent.c

    r11588 r11599  
    22 * This file Copyright (C) 2009-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
     
    653653
    654654/**
    655  * Decide on a block size.  constraints:
     655 * Decide on a block size. Constraints:
    656656 * (1) most clients decline requests over 16 KiB
    657657 * (2) pieceSize must be a multiple of block size
     
    766766    {
    767767        tr_tordbg( tor, "%s", "[LAZY] uh oh, the files disappeared" );
    768         tr_torrentSetLocalError( tor, "%s", _( "No data found!  Ensure your drives are connected or use \"Set Location\". To re-download, remove the torrent and re-add it." ) );
     768        tr_torrentSetLocalError( tor, "%s", _( "No data found! Ensure your drives are connected or use \"Set Location\". To re-download, remove the torrent and re-add it." ) );
    769769    }
    770770
  • trunk/libtransmission/torrent.h

    r11583 r11599  
    22 * This file Copyright (C) 2009-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/tr-dht.c

    r11588 r11599  
    1414THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    1515IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
     16FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    1717AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    1818LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
     
    183183
    184184        /* Our DHT code is able to take up to 9 nodes in a row without
    185            dropping any.  After that, it takes some time to split buckets.
     185           dropping any. After that, it takes some time to split buckets.
    186186           So ping the first 8 nodes quickly, then slow down. */
    187187        if(i < 8)
     
    266266
    267267    /* We currently have no way to enable or disable IPv6 once the DHT has
    268        been initialised.  Oh, well. */
     268       been initialised. Oh, well. */
    269269    if(ipv6 == NULL || (!force && dht6_socket < 0)) {
    270270        if(last_bound) {
     
    284284#ifdef IPV6_V6ONLY
    285285        /* Since we always open an IPv4 socket on the same port, this
    286            shouldn't matter.  But I'm superstitious. */
     286           shouldn't matter. But I'm superstitious. */
    287287        setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY, &one, sizeof(one));
    288288#endif
     
    711711    }
    712712
    713     /* Only do this once in a while.  Counting rather than measuring time
     713    /* Only do this once in a while. Counting rather than measuring time
    714714       avoids a system call. */
    715715    count++;
  • trunk/libtransmission/tr-dht.h

    r11284 r11599  
    1414THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    1515IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
     16FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    1717AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    1818LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  • trunk/libtransmission/tr-getopt.c

    r11522 r11599  
    22 * This file Copyright (C) 2008-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/tr-getopt.h

    r9931 r11599  
    22 * This file Copyright (C) 2008-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/tr-lpd.c

    r11588 r11599  
    1414THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    1515IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
     16FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    1717AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    1818LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
     
    6262*
    6363* This module implements the Local Peer Discovery (LPD) protocol as supported by the
    64 * uTorrent client application.  A typical LPD datagram is 119 bytes long.
     64* uTorrent client application. A typical LPD datagram is 119 bytes long.
    6565*
    6666* $Id$
     
    415415*
    416416* Send a query for torrent t out to the LPD multicast group (or the LAN, for that
    417 * matter).  A listening client on the same network might react by adding us to his
     417* matter). A listening client on the same network might react by adding us to his
    418418* peer pool for torrent t.
    419419*/
     
    472472*
    473473* @note The port information gets added to the peer structure if tr_lpdConsiderAnnounce
    474 * is able to extract the necessary information from the announce message.  That is, if
     474* is able to extract the necessary information from the announce message. That is, if
    475475* return != 0, the caller may retrieve the value from the passed structure.
    476476*/
  • trunk/libtransmission/tr-lpd.h

    r11257 r11599  
    1414THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    1515IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
     16FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    1717AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    1818LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  • trunk/libtransmission/transmission.h

    r11583 r11599  
    109109 * A libtransmission session is created by calling tr_sessionInit().
    110110 * libtransmission creates a thread for itself so that it can operate
    111  * independently of the caller's event loop.  The session will continue
     111 * independently of the caller's event loop. The session will continue
    112112 * until tr_sessionClose() is called.
    113113 *
     
    318318 *
    319319 * This is where transmission stores its .torrent files, .resume files,
    320  * blocklists, etc.  It's set in tr_transmissionInit() and is immutable
     320 * blocklists, etc. It's set in tr_transmissionInit() and is immutable
    321321 * during the session.
    322322 */
     
    446446 *
    447447 * The whitelist is a comma-separated list of dotted-quad IP addresses
    448  * to be allowed.  Wildmat notation is supported, meaning that
     448 * to be allowed. Wildmat notation is supported, meaning that
    449449 * '?' is interpreted as a single-character wildcard and
    450450 * '*' is interprted as a multi-character wildcard.
     
    504504
    505505    /* indicates to the caller that the client will take care of
    506      * removing the torrent itself.  For example the client may
     506     * removing the torrent itself. For example the client may
    507507     * need to keep the torrent alive long enough to cleanly close
    508508     * some resources in another thread. */
     
    842842
    843843    Instantiating a tr_torrent had gotten more complicated as features were
    844     added.  At one point there were four functions to check metainfo and five
     844    added. At one point there were four functions to check metainfo and five
    845845    to create tr_torrent.
    846846
     
    855855
    856856    You must call one of the SetMetainfo() functions before creating
    857     a torrent with a tr_ctor.  The other functions are optional.
     857    a torrent with a tr_ctor. The other functions are optional.
    858858
    859859    You can reuse a single tr_ctor to create a batch of torrents --
     
    877877
    878878/** @brief Create a new torrent constructor object used to instantiate a tr_torrent
    879     @param session the tr_session.  NULL is allowed if you're only calling tr_torrentParse() rather than tr_torrentNew()
     879    @param session the tr_session. NULL is allowed if you're only calling tr_torrentParse() rather than tr_torrentNew()
    880880    @see tr_torrentNew(), tr_torrentParse() */
    881881tr_ctor* tr_ctorNew( const tr_session * session_or_NULL );
     
    10291029
    10301030/** @brief Frees memory allocated by tr_torrentNew().
    1031            Running torrents are stopped first.  */
     1031           Running torrents are stopped first. */
    10321032void tr_torrentFree( tr_torrent * torrent );
    10331033
     
    10721072 *
    10731073 * IDs are good as simple lookup keys, but are not persistent
    1074  * between sessions.  If you need that, use tr_info.hash or
     1074 * between sessions. If you need that, use tr_info.hash or
    10751075 * tr_info.hashString.
    10761076 */
     
    12201220 * Returns the root directory of where the torrent is.
    12211221 *
    1222  * This will usually be the downloadDir.  However if the torrent
     1222 * This will usually be the downloadDir. However if the torrent
    12231223 * has an incompleteDir enabled and hasn't finished downloading
    12241224 * yet, that will be returned instead.
     
    12971297/**
    12981298 * Register to be notified whenever a torrent's "completeness"
    1299  * changes.  This will be called, for example, when a torrent
     1299 * changes. This will be called, for example, when a torrent
    13001300 * finishes downloading and changes from TR_LEECH to
    13011301 * either TR_SEED or TR_PARTIAL_SEED.
     
    17431743    /** When tr_stat.activity is TR_STATUS_CHECK or TR_STATUS_CHECK_WAIT,
    17441744        this is the percentage of how much of the files has been
    1745         verified.  When it gets to 1, the verify process is done.
     1745        verified. When it gets to 1, the verify process is done.
    17461746        Range is [0..1]
    17471747        @see tr_stat.activity */
     
    17581758    double metadataPercentComplete;
    17591759
    1760     /** How much has been downloaded of the files the user wants.  This differs
     1760    /** How much has been downloaded of the files the user wants. This differs
    17611761        from percentComplete if the user wants only some of the torrent's files.
    17621762        Range is [0..1]
     
    18131813
    18141814    /** Byte count of all the piece data we'll have downloaded when we're done,
    1815         whether or not we have it yet.  This may be less than tr_info.totalSize
     1815        whether or not we have it yet. This may be less than tr_info.totalSize
    18161816        if only some of the torrent's files are wanted.
    18171817        [0...tr_info.totalSize] */
     
    18191819
    18201820    /** Byte count of how much data is left to be downloaded until we've got
    1821         all the pieces that we want.  [0...tr_info.sizeWhenDone] */
     1821        all the pieces that we want. [0...tr_info.sizeWhenDone] */
    18221822    uint64_t    leftUntilDone;
    18231823
     
    18271827
    18281828    /** Byte count of all the corrupt data you've ever downloaded for
    1829         this torrent.  If you're on a poisoned torrent, this number can
     1829        this torrent. If you're on a poisoned torrent, this number can
    18301830        grow very large. */
    18311831    uint64_t    corruptEver;
     
    18351835
    18361836    /** Byte count of all the non-corrupt data you've ever downloaded
    1837         for this torrent.  If you deleted the files and downloaded a second
     1837        for this torrent. If you deleted the files and downloaded a second
    18381838        time, this will be 2*totalSize.. */
    18391839    uint64_t    downloadedEver;
     
    18871887
    18881888/** Return a pointer to an tr_stat structure with updated information
    1889     on the torrent.  This is typically called by the GUI clients every
     1889    on the torrent. This is typically called by the GUI clients every
    18901890    second or so to get a new snapshot of the torrent's status. */
    18911891const tr_stat * tr_torrentStat( tr_torrent * torrent );
    18921892
    18931893/** Like tr_torrentStat(), but only recalculates the statistics if it's
    1894     been longer than a second since they were last calculated.  This can
     1894    been longer than a second since they were last calculated. This can
    18951895    reduce the CPU load if you're calling tr_torrentStat() frequently. */
    18961896const tr_stat * tr_torrentStatCached( tr_torrent * torrent );
  • trunk/libtransmission/trevent.c

    r11588 r11599  
    22 * This file Copyright (C) 2007-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/trevent.h

    r11588 r11599  
    22 * This file Copyright (C) 2007-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/upnp.c

    r10900 r11599  
    22 * This file Copyright (C) 2007-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
     
    197197        }
    198198        tr_ninf( getKey( ),
    199                  _(
    200                      "Port forwarding through \"%s\", service \"%s\".  (local address: %s:%d)" ),
     199                 _( "Port forwarding through \"%s\", service \"%s\". (local address: %s:%d)" ),
    201200                 handle->urls.controlURL, handle->data.first.servicetype,
    202201                 handle->lanaddr, port );
  • trunk/libtransmission/upnp.h

    r9868 r11599  
    22 * This file Copyright (C) 2007-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/utils-test.c

    r11345 r11599  
    271271
    272272#if 0
    273         fprintf( stderr, "searching for %d.  ", i );
     273        fprintf( stderr, "searching for %d. ", i );
    274274        fprintf( stderr, "result: index = %d, ", pos );
    275275        if( pos != N )
  • trunk/libtransmission/utils.c

    r11574 r11599  
    22 * This file Copyright (C) 2009-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
     
    679679    va_end( vl );
    680680
    681     /* terminate the string.  if nonempty, eat the unwanted trailing slash */
     681    /* terminate the string. if nonempty, eat the unwanted trailing slash */
    682682    if( pch != buf )
    683683        --pch;
     
    900900
    901901/*
    902  * Copy src to string dst of size siz.  At most siz-1 characters
    903  * will be copied.  Always NUL terminates (unless siz == 0).
     902 * Copy src to string dst of size siz. At most siz-1 characters
     903 * will be copied. Always NUL terminates (unless siz == 0).
    904904 * Returns strlen(src); if retval >= siz, truncation occurred.
    905905 */
    906906size_t
    907 tr_strlcpy( char *       dst,
    908             const void * src,
    909             size_t       siz )
     907tr_strlcpy( char * dst, const void * src, size_t siz )
    910908{
    911909#ifdef HAVE_STRLCPY
  • trunk/libtransmission/utils.h

    r11574 r11599  
    22 * This file Copyright (C) 2009-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
     
    273273 * @return a newly-allocated string that must be freed with tr_free()
    274274 * @param str the string to make a clean copy of
    275  * @param len the length of the string to copy.  If -1, the entire string is used.
     275 * @param len the length of the string to copy. If -1, the entire string is used.
    276276 */
    277277char* tr_utf8clean( const char * str, int len ) TR_GNUC_MALLOC;
     
    332332 * @brief make a newly-allocated copy of a substring
    333333 * @param in is a void* so that callers can pass in both signed & unsigned without a cast
    334  * @param len length of the substring to copy.  if a length less than zero is passed in, strlen( len ) is used
     334 * @param len length of the substring to copy. if a length less than zero is passed in, strlen( len ) is used
    335335 * @return a newly-allocated copy of `in' that can be freed with tr_free()
    336336 */
     
    541541 * If something blocks the libtransmission thread for more than a second,
    542542 * that counter may be thrown off, so this function is not guaranteed
    543  * to always be accurate.  However, it is *much* faster when 100% accuracy
     543 * to always be accurate. However, it is *much* faster when 100% accuracy
    544544 * isn't needed
    545545 */
  • trunk/libtransmission/verify.c

    r11565 r11599  
    22 * This file Copyright (C) 2007-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
     
    148148    /* stopwatch */
    149149    end = tr_time( );
    150     tr_tordbg( tor, "Verification is done.  It took %d seconds to verify %"PRIu64" bytes (%"PRIu64" bytes per second)",
     150    tr_tordbg( tor, "Verification is done. It took %d seconds to verify %"PRIu64" bytes (%"PRIu64" bytes per second)",
    151151               (int)(end-begin), tor->info.totalSize,
    152152               (uint64_t)(tor->info.totalSize/(1+(end-begin))) );
  • trunk/libtransmission/verify.h

    r10904 r11599  
    22 * This file Copyright (C) 2007-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/web.c

    r11548 r11599  
    22 * This file Copyright (C) 2008-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/web.h

    r11514 r11599  
    22 * This file Copyright (C) 2008-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/webseed.c

    r11548 r11599  
    22 * This file Copyright (C) 2008-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/webseed.h

    r10931 r11599  
    22 * This file Copyright (C) 2008-2010 Mnemosyne LLC
    33 *
    4  * This file is licensed by the GPL version 2.  Works owned by the
     4 * This file is licensed by the GPL version 2. Works owned by the
    55 * Transmission project are granted a special exemption to clause 2(b)
    66 * so that the bulk of its code can remain under the MIT license.
  • trunk/libtransmission/wildmat.c

    r10521 r11599  
    44**  Do shell-style pattern matching for ?, \, [], and * characters.
    55**  Might not be robust in face of malformed patterns; e.g., "foo[a-"
    6 **  could cause a segmentation violation.  It is 8bit clean.
     6**  could cause a segmentation violation. It is 8bit clean.
    77**
    88**  Written by Rich $alz, mirror!rs, Wed Nov 26 19:03:17 EST 1986.
     
    1212**
    1313**  Special thanks to Lars Mathiesen <thorinn@diku.dk> for the ABORT code.
    14 **  This can greatly speed up failing wildcard patterns.  For example:
     14**  This can greatly speed up failing wildcard patterns. For example:
    1515**      pattern: -*-*-*-*-*-*-12-*-*-*-m-*-*-*
    1616**      text 1:  -adobe-courier-bold-o-normal--12-120-75-75-m-70-iso8859-1
    1717**      text 2:  -adobe-courier-bold-o-normal--12-120-75-75-X-70-iso8859-1
    18 **  Text 1 matches with 51 calls, while text 2 fails with 54 calls.  Without
    19 **  the ABORT, then it takes 22310 calls to fail.  Ugh. The following
     18**  Text 1 matches with 51 calls, while text 2 fails with 54 calls. Without
     19**  the ABORT, then it takes 22310 calls to fail. Ugh. The following
    2020**  explanation is from Lars:
    2121**  The precondition that must be fulfilled is that DoMatch will consume
    22 **  at least one character in text.  This is true if *p is neither '*' nor
     22**  at least one character in text. This is true if *p is neither '*' nor
    2323**  '\0'.)  The last return has ABORT instead of FALSE to avoid quadratic
    24 **  behaviour in cases like pattern "*a*b*c*d" with text "abcxxxxx".  With
     24**  behaviour in cases like pattern "*a*b*c*d" with text "abcxxxxx". With
    2525**  FALSE, each star-loop has to run to the end of the text; with ABORT
    2626**  only the last one does.
     
    2929**  instance will return either TRUE or ABORT, and any calling instance
    3030**  will therefore return immediately after (without calling recursively
    31 **  again).  In effect, only one star-loop is ever active. It would be
     31**  again). In effect, only one star-loop is ever active. It would be
    3232**  possible to modify the code to maintain this context explicitly,
    3333**  eliminating all recursive calls at the cost of some complication and
    3434**  loss of clarity (and the ABORT stuff seems to be unclear enough by
    35 **  itself).  I think it would be unwise to try to get this into a
     35**  itself). I think it would be unwise to try to get this into a
    3636**  released version unless you have a good test data base to try it out
    3737**  on.
     
    111111
    112112/*
    113 **  User-level routine.  Returns TRUE or FALSE.
     113**  User-level routine. Returns TRUE or FALSE.
    114114*/
    115115int
Note: See TracChangeset for help on using the changeset viewer.