![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Professional Programmer
|
Small Peer to Peer Program for school
Hello everybody. My teacher asked me to try and mak a small p2p program where students could dl their projects from home and work on them. This is what I'm needing so far.
1. Allow peopel outside to search all the computers on the network that has the p2p program installed. I don know how to do this I need the results to display in a listbox and then the user can dbl clikc them and it will start to dowbload to the My Projetcs Folder. Then I need it where if for some reason the computers are turned off and no1 can search ofr them then any1 who is online and has the progrsam installed and has what the person is searching for i will be able to download form them? If you don't understand let me know because I dont think I was very clear. lol Thanks again yall
__________________
Forgiveness is the fragrance that the violet sheds on the heal that has crushed it. - Mark Twain Destruction leads to a very rough road, but it also breeds creation. |
|
|
|
|
|
#2 |
|
Sexy Programmer
|
Good luck with this one man!
__________________
I would love to change the world, but they won't give me the source code! |
|
|
|
|
|
#3 |
|
Professional Programmer
|
Thanks alot.
HOW ABOUT NEXT TIME YOU HELP A LIL BIT????? HMMM? THINK YOU CAN DO THAT????? WHY I OUGHTA. No I'm joking I know this is prolly gonan be hard, but it could be fun to. Thanks again, Try to leave me soem help next time though.lol
__________________
Forgiveness is the fragrance that the violet sheds on the heal that has crushed it. - Mark Twain Destruction leads to a very rough road, but it also breeds creation. |
|
|
|
|
|
#4 | |||
|
Programming Guru
![]() ![]() ![]() |
I'd probably go with C# for this.... but its just a personal opinion.
Quote:
Quote:
Quote:
Maybe that's enough to get you started.
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|||
|
|
|
|
|
#5 |
|
Professional Programmer
|
I don't want to have a centralized server. I want it where it will search EVERYBODY or EVERYTHING that is online that has the program. I don't know if yall have heard of a p2p called Ares but thats what it does. it just searches all the computers that has the program installed looks in My Shared Folder, and then displays results in the Listbox
Also i dont know C# you think vb.net would be ok?
__________________
Forgiveness is the fragrance that the violet sheds on the heal that has crushed it. - Mark Twain Destruction leads to a very rough road, but it also breeds creation. |
|
|
|
|
|
#6 |
|
Professional Programmer
Join Date: Jan 2006
Location: Ontario, Canada
Posts: 367
Rep Power: 0
![]() |
VB.Net will probably get the job done. I am assuming you know sockets in VB? If not you have a lot of learning to do. You might also want to learn how to read/write to a database in VB using SQL statements. I have no clue what your programming level is, but that project would be a huge for one person.
__________________
I am Addicted to Linux! |
|
|
|
|
|
#7 | |
|
Programming Guru
![]() Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 4
![]() |
Quote:
Even creating a P2P network that manages to route most of the packets, most of the time, is not an easy task. Routing algorithms that allow for both redundacy and efficiency are not something a beginner can get to grips with straight away. Decentralised P2P networks are not trivial to develop. |
|
|
|
|
|
|
#8 | ||
|
Professional Programmer
|
Quote:
The first connection made is between the peer and the central server, after that, each peer has an open connection between one another, allowing data to pass through the network even if you have a router or in some cases, a firewall. Think of msn, aim, or any other messenger program. They use this method for sending files to one another so that the central msn server(s) don't get any of the load.
__________________
▄▄▄▄ Quote:
Due to incorrect calculations during the middle ages, our calendar actually begins a few years after Jesus' birth. Thus the real 6/6/6 happened a few years back. The world already ended and you missed it. Download Code::Blocks now! ▄▄▄▄ |
||
|
|
|
|
|
#9 | |
|
Programming Guru
![]() Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 4
![]() |
Quote:
However, the problem with the approach is that it requires a lot of redundancy. You need at least one of the peers on the list to accept connections. In a large P2P network with millions of nodes, and a list of thousands of "gateway" IP addresses, this poses no problem. On a smaller network, more problems arise. |
|
|
|
|
|
|
#10 | |
|
Hobbyist Programmer
Join Date: Oct 2005
Posts: 211
Rep Power: 3
![]() |
Quote:
Aside from the argument of whether or not something is truly a 'centralized' server perhaps you could get around this restriction by using a pre-existing centralized server. Google Talk (Google chat?) uses an open standard, and I'd imagine if you took the time and effort layering a P2P transfer on top of the existing framework, something similar to Aol Instant Messengers (AIM) file swap. -MBirchmeier note: I know in early version of AIM such a transfer was possible, in addition to 'send' file functionality a 'get' file functionality could be setup as well to keep a direcotry of shared files. I believe this functionality was at one time removed for security reasons, but it may have been added back in since. |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|