AnimeSuki Forums

Register Forum Rules FAQ Members List Social Groups Search Today's Posts Mark Forums Read

Go Back   AnimeSuki Forum > AnimeSuki & Technology > Download Help

Notices

Reply
 
Thread Tools
Old 2003-11-04, 03:45   Link #1
Ximmer
Zombie
 
Join Date: Nov 2003
Location: Space
Age: 33
Send a message via MSN to Ximmer
Torment (1.0.966)

I've been working on cloning bittorrent over the past 3 months and finally have a useable version.

I'm wondering if anyone here is willing to try it and comment about why they like/hate it or maybe give some suggestions as to what would make it better?

Also if it ever crashes it would be really helpful to me if I can get the Address it crashed at to debug what may have caused the crash.

Torment 1.0.1025.msi (949KB)

Some features of Torment are:
A Graphical Representation of the downloading file(s) called the BlockMap. (Double click the downloading file name to view it)
List of Connected Clients and thier status. (View->Client List in the BlockMap)
A Bandwidth monitor in the main window.
User Selectable Downloading Algorithm. (Rarest Piece First is the Default)
Minimize Main Window to Systray
Minimize BlockMap to Systray (Shows a Pie Chart showing how much is downloaded)
Prioritize what files download first in a multi file torrent.
Instant Preallocation.

Visit www.DarkKnightSoftware.com for a screenshot of the main window and the BlockMap

(Edit: New Version of Torment (1.0.672) and feature list)
(Edit (11/5/03): New Version of Torment (1.0.678))
(Edit (11/7/03): New Version of Torment (1.0.692))
(Edit (11/8/03): New Version of Torment (1.0.751))
(Edit (11/13/03): New Version of Torment (1.0.755))
(Edit (11/19/03): New Version of Torment (1.0.833))
(Edit (11/23/03): New Version of Torment (1.0.870))
(Edit (11/23/03): New Version of Torment (1.0.966))
(Edit (2/3/03): New Version of Torment (1.0.1025))
__________________
Current Project: Torment 2.0 (C/C++ Win32 BitTorrent Client)

Last edited by Ximmer; 2004-02-03 at 03:36.
Ximmer is offline   Reply With Quote
Old 2003-11-04, 04:42   Link #2
Lefteris_D
Senior Member
 
 
Join Date: Apr 2001
Location: Athens, Greece
Age: 32
Does it have any features better than BitTorrent?
I do like the gui though.

Edit: The post above was edited after I posted my question.
__________________
...
Lefteris_D is offline   Reply With Quote
Old 2003-11-04, 04:51   Link #3
Sukato
Kendo Fanatic
 
Join Date: Jul 2003
Age: 29
Not bad, however it doesn't have the ability to download without preallocating (and quite possibly fragmenting) space on your harddrive...which Bittorrent 3.3 fixed..
Sukato is offline   Reply With Quote
Old 2003-11-04, 04:59   Link #4
Ximmer
Zombie
 
Join Date: Nov 2003
Location: Space
Age: 33
Send a message via MSN to Ximmer
mmm only feature I think that it might have that bittorrent doesn't is the blockmap (Double click a downloading torrent) which shows exactly what you have of a file...

hmmm downloading without preallocating... I'll have to do some reasearch on that. only feasable solution I can see for that at the moment would be to store the blocks in memory and write them out later on, cause the bittorrent protocol isn't required to download sequentially meaning that if you downloaded the last block first you would be in essence preallocating the file anyways.

i havent used the 3.3 client yet either so I'm not terribly sure on the feature differences. one thing I think might be different is that my upload restrictor uploads smoother (preventing network data spikes) by uploading bytes over time instead of uploading a large chunk and then waiting for several seconds then repeating.

Thanks for trying it out... I'll look into the no Prealloc phase stuff.

(Edit: Typo)
Ximmer is offline   Reply With Quote
Old 2003-11-04, 05:59   Link #5
Ximmer
Zombie
 
Join Date: Nov 2003
Location: Space
Age: 33
Send a message via MSN to Ximmer
after looking into the no prealloc feature of the new bittorrent I'd have to say that it can cause worse file fragmentation than a prealloc method. heres the reasoning:

Hard drives are made out of clusters. now for the sake of this description we're going to say that 1 hard drive cluster = 1 BitTorrent Block.

now.. during a prealloc the program makes the entire file in one swoop (Assuming you don't do more than one prealloc at a time this should minimize fragmentation).

But if you're writing the file over time as the new bittorrent is doing and you downloading more than one file then it's possible to be writing in the order of
file1 file2 file3 file1 file2 file3 file1 file2 file3 etc etc
until all the files finish and then all the files would be intertwined and horribly fragmented.

now this sounds like the new bittorrent is a horrible monstrosity but in reality modern filesystems will attempt to prevent fragmentation as much as possible...

for example the filesystem may start allocating the file in a large area expecting the file to become large or it may keep files that are open at the same time in diferent locations of the hard drive.

But whatever you do it will still be hard to avoid fragmentation and I think the avoidance of the preallocation does not help with the fragmentation issue.

I'm not saying it will worsen fragmentation, I'm just saying it doesn't help the issue.

(Do not take this information as law. Modern File Systems try to prevent fragmentation as much as they can, it's just a speed vs space issue that's been fought for many many years)
Ximmer is offline   Reply With Quote
Old 2003-11-05, 13:09   Link #6
ZeroKun
Senior Member
 
Join Date: Jun 2003
crashes when loading a torrent

"TORMENT caused an invalid page fault in
module TORMENT.EXE at 0167:00404d6e.
Registers:
EAX=0000e11a CS=0167 EIP=00404d6e EFLGS=00010202
EBX=00000000 SS=016f ESP=0067faf8 EBP=00001ae1
ECX=00001ae1 DS=016f ESI=007ab690 FS=6faf
EDX=0000e100 ES=016f EDI=007ab650 GS=7026
Bytes at CS:EIP:
8b 4b 0c 8b 11 8b 02 57 8d 4e 48 89 44 24 18 ff
Stack dump:
007b2681 0067fb68 007ab708 007ab6f0 e11a0002 00000000 00000000 00000000 40575d01 00403efc 007ab650 00001ae1 007a1280 00000000 00000000 0040cbda "
ZeroKun is offline   Reply With Quote
Old 2003-11-05, 17:25   Link #7
Rasher
Junior Member
 
Join Date: Nov 2003
Send a message via ICQ to Rasher
it always says "not enough free disk space" but im downloading a 150mb file and have ~2gb free
Rasher is offline   Reply With Quote
Old 2003-11-06, 00:41   Link #8
Ximmer
Zombie
 
Join Date: Nov 2003
Location: Space
Age: 33
Send a message via MSN to Ximmer
Okay... New version 1.0.678 fixes the crash mentioned by ZeroKun and I changed the Error message from a bad Prealloc so it should give a more meaningfull error message and allow the user to continue if they really want to. (I impose caution on doing so... compare the created file size with the size the file should be to make sure it allocated correctly)

Thanks again for helping me with this!

(New version link is in top post)
__________________
Current Project: Torment 2.0 (C/C++ Win32 BitTorrent Client)
Ximmer is offline   Reply With Quote
Old 2003-11-06, 01:17   Link #9
ZeroKun
Senior Member
 
Join Date: Jun 2003
seems to cause GDI problems with me, maybe a memory issue, plus it would be nice to have an option to turn off the bandwidth usage graph.

Last edited by ZeroKun; 2003-11-06 at 01:34.
ZeroKun is offline   Reply With Quote
Old 2003-11-06, 01:51   Link #10
Ximmer
Zombie
 
Join Date: Nov 2003
Location: Space
Age: 33
Send a message via MSN to Ximmer
I'll take a run through all the GDI code to make sure it's doing everything properly and make a View->Bandwidth Monitor menu later on tonight.

And thanks for that Memory dump that was really helpfull in finding what was going on with that crash. That was exactly what I needed to find it.
__________________
Current Project: Torment 2.0 (C/C++ Win32 BitTorrent Client)
Ximmer is offline   Reply With Quote
Old 2003-11-06, 05:31   Link #11
guenthar
Member
 
Join Date: Feb 2003
Age: 33
I found a client based upon the experimental client which uses 1 window and has some options you might want to look at or at least you might get some insperation from it. http://pingpong-abc.sourceforge.net/
__________________
Wahoo!!!!!
guenthar is offline   Reply With Quote
Old 2003-11-06, 06:41   Link #12
Ximmer
Zombie
 
Join Date: Nov 2003
Location: Space
Age: 33
Send a message via MSN to Ximmer
Thanks! I'll look into trying to get some of the features in that program into mine.
__________________
Current Project: Torment 2.0 (C/C++ Win32 BitTorrent Client)
Ximmer is offline   Reply With Quote
Old 2003-11-06, 13:43   Link #13
ZeroKun
Senior Member
 
Join Date: Jun 2003
now that it works, it doesnt seem to connect to peers/seeds that fast, its been 10 minutes and only 8 connections.
ZeroKun is offline   Reply With Quote
Old 2003-11-06, 18:50   Link #14
Ximmer
Zombie
 
Join Date: Nov 2003
Location: Space
Age: 33
Send a message via MSN to Ximmer
Torment Requeries the Tracker on the interval specified by the tracker.. this is usually every half hour.

So if you not getting new connections it may be because your behind a firewall and have port 6881 blocked.

Torment only uses one port to recieve client connections and divies out the new connections basedon which file the person want's access to.

Also the Port is configurable in the Tools->Settings->Connections Tab.

If you really want to try getting more connections you can right click the file and select Get New Client List. This will connect to the tracker again and attempt to retrieve a list of clients and attempt to connect to them. With my expirience tho only about 20-50% of clients ever accept the connection, and the clients that connect to you are the ones that tend to give the best download speeds.

Also in the Client list for a torrent there will be a litle * by the clients that are connecting to you. If you don't hae any of these you may be behind a firewal or are already connected to all the clients that are available for that torrent. Trackers sometimes have Dead connections in thier list. I suspect that trackers only remove idle clients on the refresh interval they specify.
__________________
Current Project: Torment 2.0 (C/C++ Win32 BitTorrent Client)
Ximmer is offline   Reply With Quote
Old 2003-11-07, 05:05   Link #15
Ximmer
Zombie
 
Join Date: Nov 2003
Location: Space
Age: 33
Send a message via MSN to Ximmer
Major bug fix:

Apparently you can have subfolders in multi file torrents. I was wondering about this a long time ago but couldn't figure out how it was done. So I finally figured it out and that was what was causing the Preallocation Errors. Version 1.0.692 addresses that issue.

Also I went through the GDI code but didn't really find much that could be leaking... I did add some precautionary code in a few places just in case it was leaking on anyones machines. But for the most part the GDI Object count was stable. Also the option to turn the Bandwidth Monitor off was added.
__________________
Current Project: Torment 2.0 (C/C++ Win32 BitTorrent Client)
Ximmer is offline   Reply With Quote
Old 2003-11-08, 08:46   Link #16
Ximmer
Zombie
 
Join Date: Nov 2003
Location: Space
Age: 33
Send a message via MSN to Ximmer
New version of torment. New feature is you can select the order in which files in a multi file torrent are downloaded. Anyone else have ideas on what could make this program even better or what makes it worse than others?
__________________
Current Project: Torment 2.0 (C/C++ Win32 BitTorrent Client)
Ximmer is offline   Reply With Quote
Old 2003-11-08, 14:17   Link #17
guenthar
Member
 
Join Date: Feb 2003
Age: 33
If you read the message just forget it. I forgot to uncheck the change underscores to spaces option.

PS. I do have a problem, unless it has been corrected with the newest version even when I don't have the "ask what to save the file as" option checked and when I have the "default directory" option checked it still asks where to save the file when I double click an associated torrent.
__________________
Wahoo!!!!!

Last edited by guenthar; 2003-11-08 at 16:16.
guenthar is offline   Reply With Quote
Old 2003-11-08, 18:55   Link #18
Ximmer
Zombie
 
Join Date: Nov 2003
Location: Space
Age: 33
Send a message via MSN to Ximmer
Ahh thanks for pointing that out. I fixed it and also made the installer a bit smaller.
__________________
Current Project: Torment 2.0 (C/C++ Win32 BitTorrent Client)
Ximmer is offline   Reply With Quote
Old 2003-11-10, 21:19   Link #19
guenthar
Member
 
Join Date: Feb 2003
Age: 33
I have one more suggestion and that is to have the program save what stuff downloading so that when you close it or your computer crashes then the torrents will still be there and you don't have to put them all back in. If you do that then it will be alot better.
__________________
Wahoo!!!!!
guenthar is offline   Reply With Quote
Old 2003-11-11, 14:41   Link #20
Mithel
Junior Member
 
Join Date: Nov 2003
This is really cool, you should keep working on it. I especially like the BlockMap feature.
Mithel is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 23:38.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
We use Silk.