Code center > Darwinbots Program Source Code
DB IM P2P Work
ikke:
One of the advantages of using their code it that it has been tested by many users, so it's probably more robust than anything a sole programmer can achieve and beta test in DB
Botsareus:
There is no such thing as a "serverless p2p" (as I thought)
This one uses eD2K or Kademlia networks.
Botsareus:
Ouch, It is written in c++, and, there is about 2x more code then in DarwinBots. Plus, I have some missing files in my Output window. :wacko:
ikke do you know any c++ ? :P
ikke:
--- Quote from: Botsareus on June 11, 2012, 03:03:40 PM ---There is no such thing as a "serverless p2p" (as I thought)
This one uses eD2K or Kademlia networks.
--- End quote ---
KAD is serverless. You save a list of peers as you exit, and hope not every one of them is dead when you reconnect. They provide the entry to the rest of the network. No server, or everybody is a server. More important, KAD is a searching technique to find files. I don't think we need that. What we do need is the code to build a network and establish and maintain connections even when passing through bottlenecks like routers. If we look at the code they need to successfully send and receive their handshake we have enough, I think.
And yes, I have a basic knowledge of C++. Every programmer hammers me when I say so but computer languages all look alike. My problem is I don't know any libraries...
I have read some sections of the emule code and made some minor alterations for my own mod. I know of the sections you are probably interested in, but don't know them.
Key words to look for: socket, upnp, packet, OP_HELLO
Missing files are due to 3rd party libraries not always included on the source code , or wring VS version (express version).
Botsareus:
--- Quote ---You save a list of peers as you exit,
--- End quote ---
Interesting, so how do you get the list in the first place? (I really don't like piggy backing on some random peers file sharing xxx vids or something)
My c++ knowledge is very limited.
1. We can get rid of most of the UI stuff.
2. We do not need file searching components.
3. We just need a way to connect to a random peer and transfer a file.
Can you give me a general idea where to look for the stuff above? (I know that in c++ most of the UI stuff is hard-coded)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version