![]() |
new code
I managed to get it making info_hash'es now, so to demo this you can compile the code (linux method shown): gcc -o beetorrent -lpthread main.c And run it with (linux method shown): ./beetorrent whatever.torrent And it will calculate and spit out that torrent's info_hash. This is really boring by the way, but it shows that I'm actually working at a decent pace on this. The info_hash is important because it's part of the initial tracker request, and this means that serious shit like socket orchestration are coming soon...The More You Know (tm). To do the same under Windows, you need visual studio to compile it. Then you just "beetorrent whatever.torrent" in a console or whatever. |
Someone make a ebuild for it for Gentoo, the only distribution worthy of usage.
|
jeez you dont neven need an ebuild, it just takes a single line to compile it.
|
but emerge beetorrent would be way easier... that and I really have no use for it atm... lol!
|
sorry for the lack of updates the past few days...i've been busy coming up with a proper architecture for all the code that does the actual downloading and shit (which is very close to being started)
expect some shit over the weekend |
new code
Right now i'm working on the stuff that loads the torrent, after that comes the network stuff, so exciting things are coming soon. |
new shit, code can now list all the announce servers in a torrent...
the stuff that loads a torrent is almost done. |
News...
I'm thinking of creating a toolkit for the project in C++ to simplify all the crazy cross-platform shit I'll be doing, such as Gtk and Qt support. Keep in mind that a linux program that supports both Qt and Gtk is rare, so I'll be doing some leet shit here. I think the toolkit will be called BeeToolkit, or BTK. |
In my experience, cross-platform interfaces suck, unless you're using OpenGL and making your own from scratch.
|
BTKLib code uploaded. In main.c is an example packet echo server using the BTKSocket interface.
|
New BTKLib uploaded, same packet echo server, but now with hot cross-platform action!
gcc -o btktest -lpthread main.cpp makes a packet echo server on port 12345 on linux. |
I've been really busy trying to build the user interface part...Windows' menu api is horrible.
|
Quote:
|
This shit is awsome. I actually uderstand some of the code too, yay computer science classes.
|
okay guys its been a while
new code, rewrote the code of the announce_server list |
Need an update soon k go
|
All times are GMT -6. The time now is 05:04 AM. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.