Page 1 of 4

Torrent client - pbTorrent (source code).

Posted: Thu Jun 28, 2012 8:51 pm
by User_Russian
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

Re: Torrent client - pbTorrent (source code).

Posted: Thu Jun 28, 2012 9:34 pm
by idle
Thanks, look good.

Re: Torrent client - pbTorrent (source code).

Posted: Thu Jun 28, 2012 11:26 pm
by IdeasVacuum
9/10 ...lose 1 point for downloading a BoneyM record :mrgreen:

Re: Torrent client - pbTorrent (source code).

Posted: Thu Jun 28, 2012 11:34 pm
by xorc1zt
thanks, must be great stuff. i tried to take a look at the source but dat pb syntax is too way crappy for me.

Re: Torrent client - pbTorrent (source code).

Posted: Thu Jun 28, 2012 11:43 pm
by Zach
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.

Re: Torrent client - pbTorrent (source code).

Posted: Fri Jun 29, 2012 1:48 am
by jassing
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!

Re: Torrent client - pbTorrent (source code).

Posted: Fri Jun 29, 2012 5:39 am
by Pureabc
Looks very nice.

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

Any chance of releasing an English version?

Thank you.

Re: Torrent client - pbTorrent (source code).

Posted: Fri Jun 29, 2012 7:05 am
by IdeasVacuum
For language translation, try this: http://www.purebasic.fr/english/viewtop ... 14&t=50324

Re: Torrent client - pbTorrent (source code).

Posted: Fri Jun 29, 2012 1:31 pm
by Kwai chang caine
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)

Re: Torrent client - pbTorrent (source code).

Posted: Fri Jun 29, 2012 2:32 pm
by xorc1zt
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.

Re: Torrent client - pbTorrent (source code).

Posted: Fri Jun 29, 2012 2:37 pm
by blueb
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

Re: Torrent client - pbTorrent (source code).

Posted: Fri Jun 29, 2012 6:53 pm
by Zebuddi123
@ Kwaï chang caïne

Hi Kwai you can translate the comments from russian to french etc with my util http://www.purebasic.fr/english/viewtop ... 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

Re: Torrent client - pbTorrent (source code).

Posted: Sat Jun 30, 2012 11:16 pm
by Kwai chang caine
Thanks Zebuddi 8)
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

Re: Torrent client - pbTorrent (source code).

Posted: Fri Jul 06, 2012 2:34 pm
by Psychophanta
Great work!

Re: Torrent client - pbTorrent (source code).

Posted: Fri Jul 06, 2012 10:24 pm
by Seymour Clufley
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.