It is currently Mon Dec 09, 2019 3:41 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 56 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
 Post subject: Torrent client - pbTorrent (source code).
PostPosted: Thu Jun 28, 2012 8:51 pm 
Offline
Addict
Addict

Joined: Wed Nov 12, 2008 5:01 pm
Posts: 1056
Location: Russia
A small torrent client are written in PureBasic (source code).
To compile the code requires version PureBasic 4.51 (Windows x86) or higher.

English version.

Screenshots.

Image

Image

_________________
Library XP_Menu_Lib - office menu; HID_Lib - USB Library
Torrent client - pbTorrent (source code); Create driver in PureBasic.


Last edited by User_Russian on Sat Sep 07, 2013 10:55 am, edited 2 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Torrent client - pbTorrent (source code).
PostPosted: Thu Jun 28, 2012 9:34 pm 
Online
Addict
Addict
User avatar

Joined: Fri Sep 21, 2007 5:52 am
Posts: 3421
Location: New Zealand
Thanks, look good.


Top
 Profile  
Reply with quote  
 Post subject: Re: Torrent client - pbTorrent (source code).
PostPosted: Thu Jun 28, 2012 11:26 pm 
Offline
Always Here
Always Here

Joined: Fri Oct 23, 2009 2:33 am
Posts: 5884
Location: Wales, UK
9/10 ...lose 1 point for downloading a BoneyM record :mrgreen:

_________________
IdeasVacuum
If it sounds simple, you have not grasped the complexity.


Top
 Profile  
Reply with quote  
 Post subject: Re: Torrent client - pbTorrent (source code).
PostPosted: Thu Jun 28, 2012 11:34 pm 
Offline
Enthusiast
Enthusiast

Joined: Sat Jul 09, 2011 7:57 am
Posts: 276
thanks, must be great stuff. i tried to take a look at the source but dat pb syntax is too way crappy for me.


Top
 Profile  
Reply with quote  
 Post subject: Re: Torrent client - pbTorrent (source code).
PostPosted: Thu Jun 28, 2012 11:43 pm 
Offline
Addict
Addict

Joined: Sun Dec 12, 2010 12:36 am
Posts: 1617
Location: Somewhere in the midwest
Wow that's awesome!

I'd always thought about what it would be like if I made something like this.. No way mine would look as good.

Edit:
Windows 7 (x64)
Purebasic v4.61 (x86)


I am unable to compile/run the source. I get an error

Compiler wrote:
--------------------------------------------------------------------------------
Building 'PB Torrent'...
--------------------------------------------------------------------------------
Including: Constant.pbi
Including: TorrentFiles.pbi
Including: Structures.pbi
Including: FlagIcon.pbi
Including: ClientName.pbi
Including: Controls_CB.pbi
Including: misc.pbi
Line 1124: Invalid name: same as an external command.

--------------------------------------------------------------------------------

1 targets compiled with errors.


It seems to occur on this line, in Misc.pb - which is a procedure definition

Edit #2:
I found out the reason. This uses the same Procedure name as the CreateRebar() command for PrincieD's ProGUI Library, of which I have the Userlib version installed.
If anyone is using the User Library version of ProGUI then you won't be able to compile this program because of Command naming conflicts.

_________________
Image


Top
 Profile  
Reply with quote  
 Post subject: Re: Torrent client - pbTorrent (source code).
PostPosted: Fri Jun 29, 2012 1:48 am 
Offline
Addict
Addict
User avatar

Joined: Wed Feb 17, 2010 12:00 am
Posts: 1324
Location: (Embarrassed to say country)
xorc1zt wrote:
thanks, must be great stuff. i tried to take a look at the source but dat pb syntax is too way crappy for me.


Really? I found it easy to read and understand. Even better was that functions, variables were in a "internet common language" (english).

No two coders code alike; each one will say "I'd have done it this way" (even if it's just how you bracket things (in the case of C)) -- inability or inflexibility will limit ones productiveness.

Good stuff -- and thanks for sharing the code!


Top
 Profile  
Reply with quote  
 Post subject: Re: Torrent client - pbTorrent (source code).
PostPosted: Fri Jun 29, 2012 5:39 am 
Offline
User
User

Joined: Mon Jan 16, 2006 1:11 am
Posts: 76
Looks very nice.

One problem for me as I can't read Russian.

Any chance of releasing an English version?

Thank you.


Top
 Profile  
Reply with quote  
 Post subject: Re: Torrent client - pbTorrent (source code).
PostPosted: Fri Jun 29, 2012 7:05 am 
Offline
Always Here
Always Here

Joined: Fri Oct 23, 2009 2:33 am
Posts: 5884
Location: Wales, UK
For language translation, try this: http://www.purebasic.fr/english/viewtopic.php?f=14&t=50324

_________________
IdeasVacuum
If it sounds simple, you have not grasped the complexity.


Top
 Profile  
Reply with quote  
 Post subject: Re: Torrent client - pbTorrent (source code).
PostPosted: Fri Jun 29, 2012 1:31 pm 
Offline
Addict
Addict
User avatar

Joined: Sun Nov 05, 2006 11:42 pm
Posts: 4542
Location: Lyon - France
Quote:
Looks very nice.
One problem for me as I can't read Russian.
Any chance of releasing an English version?
Thank you.
Me too !!!
In fact i don't think we are numerous to read the difficult language russian :wink:
Perhaps Russian is again more difficult than PB :lol: :lol:
So, i'm proud to can talk to at all the world programmers...may be that one day, all countries will have at least one programmer in PB 8)

Nice and great job and mainly thanks for sharing all this big job 8)

_________________
ImageThe happiness is a road...
Not a destination


Top
 Profile  
Reply with quote  
 Post subject: Re: Torrent client - pbTorrent (source code).
PostPosted: Fri Jun 29, 2012 2:32 pm 
Offline
Enthusiast
Enthusiast

Joined: Sat Jul 09, 2011 7:57 am
Posts: 276
jassing wrote:
Really? I found it easy to read and understand. Even better was that functions, variables were in a "internet common language" (english).

No two coders code alike; each one will say "I'd have done it this way" (even if it's just how you bracket things (in the case of C)) -- inability or inflexibility will limit ones productiveness.

Good stuff -- and thanks for sharing the code!


was talking about purebasic not his code. using parentheses and not square brackets for array, not allowing endline between parentheses and others stuff like the pointers made the code ugly and confusing.


Top
 Profile  
Reply with quote  
 Post subject: Re: Torrent client - pbTorrent (source code).
PostPosted: Fri Jun 29, 2012 2:37 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Apr 26, 2003 2:15 pm
Posts: 841
Location: Cuernavaca, Mexico
IdeasVacuum wrote:
9/10 ...lose 1 point for downloading a BoneyM record :mrgreen:


Where was I in '78... why, in a disco. Of course :mrgreen:


...
RA RA RASPUTIN
Lover of the Russian queen
There was a cat that really was gone
RA RA RASPUTIN
Russia's greatest love machine
It was a shame how he carried on
...

:D :D :D

_________________
- It was too lonely at the top.

Current Machine: Win 10 Pro 64-bit, Dual Xeon E5-2670, 64 gigs ram, Geforce GTX 1660 Ti w/6 gigs ram


Top
 Profile  
Reply with quote  
 Post subject: Re: Torrent client - pbTorrent (source code).
PostPosted: Fri Jun 29, 2012 6:53 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Feb 01, 2012 3:30 pm
Posts: 753
Location: Nottinghamshire UK
@ Kwaï chang caïne

Hi Kwai you can translate the comments from russian to french etc with my util http://www.purebasic.fr/english/viewtopic.php?f=14&t=50324
strings are now in the works so you should be able to translate any source code in the near future from any language to another ( ie all comments and strings )

should take take less than a minute for each file

Zebuddi. :D

PS Why Kwaï chang caïne ? do you study M/A

_________________
malleo, caput, bang. Ego, comprehendunt in tempore


Top
 Profile  
Reply with quote  
 Post subject: Re: Torrent client - pbTorrent (source code).
PostPosted: Sat Jun 30, 2012 11:16 pm 
Offline
Addict
Addict
User avatar

Joined: Sun Nov 05, 2006 11:42 pm
Posts: 4542
Location: Lyon - France
Thanks Zebuddi 8)
Quote:
PS Why Kwaï chang caïne ? do you study M/A
Just a boundless admiration for the respect between a pupil and his master. I just feel in this forum, to be a disciple with his numerous masters in a "Shaolin temple" 8) , not kung fu but in PureBasic :D
Image
Image

_________________
ImageThe happiness is a road...
Not a destination


Top
 Profile  
Reply with quote  
 Post subject: Re: Torrent client - pbTorrent (source code).
PostPosted: Fri Jul 06, 2012 2:34 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Jun 11, 2003 9:33 pm
Posts: 4580
Location: Spa, relaxing and thinking, and learning...
Great work!

_________________
http://www.zeitgeistmovie.com

While world=business:world+mafia:Wend


Top
 Profile  
Reply with quote  
 Post subject: Re: Torrent client - pbTorrent (source code).
PostPosted: Fri Jul 06, 2012 10:24 pm 
Offline
Addict
Addict

Joined: Wed Feb 28, 2007 9:13 am
Posts: 1038
Location: London
xorc1zt wrote:
was talking about purebasic not his code. using parentheses and not square brackets for array, not allowing endline between parentheses and others stuff like the pointers made the code ugly and confusing.


xorc1zt, why are you on this forum? Do you expect PB syntax (which other people are quite happy with) to change just because you continually post snide comments about it? Bugger off.

_________________
JACK WEBB: "Coding in C is like sculpting a statue using only sandpaper. You can do it, but the result wouldn't be any better. So why bother? Just use the right tools and get the job done."


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 56 posts ]  Go to page 1, 2, 3, 4  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 6 guests


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

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye