Re: info_hash help

Eric Petit <[email protected]>
Newsgroups gmane.network.bit-torrent.general
Message-ID <[email protected]>
On Nov 22, 2004, at 7:54, Adam Lyttle wrote:
> The specification states that I need to hash the info dictionary
> value, what does this mean exactly? What part of the following example
> would I hash?
>
> :infod6:lengthi184102912e4:name10:..........12:piece
> lengthi262144e6:6:pieces3:...e

What you whould hash here is:
d6:lengthi184102912e4:name10:..........12:piecelengthi262144e6:6: 
pieces3:...e

> Also, I have noticed that there are two 'e' values at the very end of
> the torrent file. Should I be placing both of these values into the
> hash, or one, or none?

Just one. The first one marks the end if the "info" dictionnary, the  
second one is the end of the global dictionnary.

-- 
Eric Petit <[email protected]>



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/dkFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/BitTorrent/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.