Re: [libtorrent] Current CVS version functional?
Brought to you by:
arvidn
|
From: Iain H. <ia...@fl...> - 2004-03-10 05:40:13
|
It seems that the problem I was having was caused by the hash being incorrect. I was able to track it back to sha1.c which assumes that the architecture is little endian in all cases. Specifically, all cases in the #ifdef assume that the macro LITTLE_ENDIAN should be defined thus causing blk0(i) not to be correctly defined (lines 110 - 117). This is further complicated by the fact that both LITTLE_ENDIAN and BIG_ENDIAN are defined somewhere else, probably by one of the other included files. I'm currently looking into where it is defined and what the correct big endian macro to use is so that I can put together a patch that will work on all big endian systems. Apple's version of gcc sets __BIG_ENDIAN__ but I haven't been able to determine if this macro is universal. As it stands right now, my problem is solved and I'll look into the correct macro to use so that it can be integrated into libtorrent. -- Iain On Mar 8, 2004, at 1:26 PM, Arvid Norberg wrote: > > > Iain Heggie wrote: >> Just to make sure that it wasn't the tracker I was connecting to I >> tried using the official OS X BitTorrent client and it has no problem >> connecting. >> The process I following in testing this was >> 1) Download >> http://torrent.dulug.duke.edu/yarrow-src-x86_64-iso.torrent to my >> local machine >> 2) ./client_test ~/Desktop/yarrow-src-x86_64-iso.torrent > > I tried that torrent and client_test successfully announced itself with > the tracker. Maybe this is something related to OS X (in that I haven't > tested libtorrent at all on OSX). > >> There doesn't appear to be any password in use unless of course the >> official client uses one without informing the user. >> Is there anything that I can do to get more debugging information? > > You could run an etherreal (www.ethereal.com) session and save the > netwok traffic between the client and the tracker, and compare it to > the > official client. > > I will borrow an OS X box at the end of this week, then I will be able > to look closer at this issue. > >> Iain > > -- > Arvid Norberg > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Libtorrent-discuss mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss > |