On 21 Sep 08, at 11:14, Sandro Noel wrote:
so basically what i'm dooing here, is that if i find the caracter "d" and i'm at least 4 bytes into the file, i check to see if the 4 caracters before my location contain the word "info", so then i know that my
current location is the start of the info values.

Or it's in the middle of a string which contains "infod" - perhaps the torrent contains a file called "infodump". The appropriate way to deal with the bencoded data is to parse it out into native data structures (NSArray and NSDictionary). Trying to take shortcuts like this will cause unpredictable errors.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to