add XTorrent to clients

This commit is contained in:
Mitchell Livingston 2006-12-23 20:27:24 +00:00
parent 153e11ee4b
commit b9fe71990c
1 changed files with 11 additions and 5 deletions

View File

@ -55,6 +55,11 @@ char * tr_clientForId( uint8_t * id )
asprintf( &ret, "Azureus %c.%c.%c.%c",
id[3], id[4], id[5], id[6] );
}
else if( !memcmp( &id[1], "UT", 2 ) )
{
asprintf( &ret, "\xc2\xb5Torrent %c.%d", id[3],
charToInt( id[4] ) * 10 + charToInt( id[5] ) );
}
else if( !memcmp( &id[1], "TS", 2 ) )
{
asprintf( &ret, "TorrentStorm (%c%c%c%c)",
@ -71,11 +76,6 @@ char * tr_clientForId( uint8_t * id )
asprintf( &ret, "Shareaza %c.%c.%c.%c",
id[3], id[4], id[5], id[6] );
}
else if( !memcmp( &id[1], "UT", 2 ) )
{
asprintf( &ret, "\xc2\xb5Torrent %c.%d", id[3],
charToInt( id[4] ) * 10 + charToInt( id[5] ) );
}
else if( !memcmp( &id[1], "BOW", 3 ) )
{
asprintf( &ret, "Bits on Wheels (%c%c)",
@ -86,6 +86,12 @@ char * tr_clientForId( uint8_t * id )
asprintf( &ret, "BitRocket %c.%c (%d)",
id[3], id[4], charToInt( id[5] ) * 10 + charToInt( id[6] ) );
}
else if( !memcmp( &id[1], "XX", 2 ) )
{
asprintf( &ret, "XTorrent (%d)",
charToInt( id[3] ) * 1000 + charToInt( id[4] ) * 100
+ charToInt( id[5] ) * 10 + charToInt( id[6] ) );
}
else if( !memcmp( &id[1], "KT", 2 ) )
{
asprintf( &ret, "KTorrent %c.%c.%c.%c",