Board.KolibriOS.org

Official KolibriOS board
It is currently Mon Aug 19, 2019 11:06 am

All times are UTC+03:00




Post new topic  Reply to topic  [ 23 posts ]  Go to page Previous 1 2
Author Message
 Post subject: Re: GSoC : BitTorrent
PostPosted: Mon Jun 27, 2016 12:21 pm 
Offline
KSoC/GSoC Student

Joined: Thu Mar 03, 2016 3:50 pm
Posts: 21
Quote:
Pathoswithin,
I am going with the assumption that KolibriOS application should use minimum RAM [Hence, strict memory requirement.
]. That's why I thought of not keeping all pieces in memory.




Quote:
Hidnplayr,
What exactly should be configurable ? -> How many pieces user wants to keep in memory [i.e. how much RAM an application can use ] ?
If it is the case, it would make application design more complex.


Top
   
 Post subject: Re: GSoC : BitTorrent
PostPosted: Mon Jun 27, 2016 12:49 pm 
Offline
Mentor/Kernel Developer
User avatar

Joined: Thu Mar 26, 2015 5:16 pm
Posts: 1264
Of course, you may start with simple approach. I just noted, that hard drive and file systems work worse with small operations.


Top
   
 Post subject: Re: GSoC : BitTorrent
PostPosted: Mon Jun 27, 2016 8:23 pm 
Offline
Mentor/Kernel Developer
User avatar

Joined: Fri Jun 30, 2006 9:01 am
Posts: 1247
Utsav_Chokshi wrote:
What exactly should be configurable ? How many pieces user wants to keep in memory [i.e. how much RAM an application can use ] ?
If it is the case, it would make application design more complex.

Writing large chunks of memory at once, that seems complex to me, given the nature of small blocks used in torrent, and the fact that you typically don't receive those in order (sequential).
Limiting the amount of chunks the client receives at once seems pretty simple to me.

Let's make it work first :)

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein


Top
   
 Post subject: Re: GSoC : BitTorrent
PostPosted: Tue Jul 12, 2016 9:22 am 
Offline
KSoC/GSoC Student

Joined: Thu Mar 03, 2016 3:50 pm
Posts: 21
Hello All,
Bit-torrent protocol supports 11 different kind of messsages. [https://wiki.theory.org/BitTorrentSpecification]
Message passing between peers is heart of bit-torrent protocol.
This week I will be working on to make Message Passing, more robust.
I have already implemented basic message passing with respect to one peer & download.

Last two week,
I added few files :
-> Piece.asm
-> Fileops.asm
Made changes to few files :
-> Peer.asm
-> Torrent.asm
-> Bencode.asm

I am also maintaining note about basic outlines of code I am implementing under notes folder.

Thanks.


Top
   
 Post subject: Re: GSoC : BitTorrent
PostPosted: Wed Aug 10, 2016 9:36 pm 
Offline
KSoC/GSoC Student

Joined: Thu Mar 03, 2016 3:50 pm
Posts: 21
Hello All,

I have made github webpage about project :
http://chokshiutsav.github.io/BitTorrent/

Here is my code's github link :
https://github.com/ChokshiUtsav/BitTorrent

I am still working on showing demo.
I'll update the same on web-page as well as ReadMe.md

Thanks :)


Top
   
 Post subject: Re: GSoC : BitTorrent
PostPosted: Sat Aug 27, 2016 8:52 pm 
Offline
Mentor
User avatar

Joined: Mon Oct 19, 2009 10:58 am
Posts: 421
I compiled current code and tried to download test.torrent from your repo.
There is no documentation on how to control downloads, but here is what I got:
  • download_torrent command adds new torrent and creates corresponding file on disk;
  • file in not downloaded, no errors and no status indication;
  • show_all_torrent reports added torrent is not started and I don't know how to start it.

Spoiler: Show
Attachment:
torrent_20160827.png
torrent_20160827.png [ 61.33 KiB | Viewed 1542 times ]


Top
   
 Post subject: Re: GSoC : BitTorrent
PostPosted: Sun Aug 28, 2016 2:17 pm 
Offline
KSoC/GSoC Student

Joined: Thu Mar 03, 2016 3:50 pm
Posts: 21
Hello All,

To run temporary demo, Please follow the below steps :
1) Run git clone https://github.com/ChokshiUtsav/BitTorrent.git
2) make run
3) Open bittorrent_backend_show along with boardlog opened.

You should be able to see pieces of torrent file being downloaded and torrent file being created at /tmp0/1.

I am attaching screenshot for reference : https://snag.gy/a9Fg0b.jpg

If you are not able to run the demo, let me know (I am available on IRC with user name (Utsav_Chokshi)).

Thanks !


Top
   
 Post subject: Re: GSoC : BitTorrent
PostPosted: Mon Aug 29, 2016 3:02 pm 
Offline
KSoC/GSoC Student

Joined: Thu Mar 03, 2016 3:50 pm
Posts: 21
Hello All,

I have prepared video which follows steps mentioned in the last post.

https://youtu.be/s4RyjN1IZ-E

Thanks :)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 23 posts ]  Go to page Previous 1 2

All times are UTC+03:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited