pike.git / lib / modules / Protocols.pmod / Bittorrent.pmod / Tracker.pike

version» Context lines:

pike.git/lib/modules/Protocols.pmod/Bittorrent.pmod/Tracker.pike:385:    ts = ts[..m->num_info_hashes-1];    if(sizeof(ts)<m->num_info_hashes)    return udp_error(header->transaction_id, "Too few info hashes.");    string ret = "";    foreach(ts, string hash) {    TorrentInfo t = torrents[hash];    if( !t )    ret += "\0\0\0\0""\0\0\0\0""\0\0\0\0";    else    ret += sprintf("%4c%4c%4c", t->num_completed(), -  t->num_seeds(), t->num_leechers); +  t->num_seeds(), t->num_leechers());    }    return make_udp_header(2, header->transaction_id) + ret;    break;    }       default:    return udp_error(0, "Unkown action.");    }      }