Hello.
I want to write a simple P2P module (for one of my existing applications 
application) specialized
in transferring small files (max 0.5 or 1 MB) but I would like not to keep a 
central server.
A P2P network without server is difficult to realize so I think I really need a 
minimum central
server.
The difficulty is to make the clients aware of each other.
Until now my idea is keep a txt file on the server with RW rights where a 
client will write its
own IP when it enters the network and delete its own address when it leaves the 
network.
Any client connected to the network will read that file to know who else it 
present in the
network.
In this moment the clients won't need the server anymore. They connect to each 
other directly and
start the download.

Items and issues:
0. The server is running Windows but it is not mine so I can't write my own 
custom software
(although I think they allow my to write and install small .Net application on 
their server)
1. Every client must renew its IP (and timestamp) in the server's list every at 
3 hours
2. It must download a new IP list at every 20 minutes
3. The list must be small
4. What will happen if 2 clients will simultaneously try to write to the list?
5. What happens when a client suddenly leave the network without deleting its 
IP from the list
(probably the list must be cleaned by a special utility) 
6. Idea: when a client enters the network it can send a message to every 
already connected client
to inform them about its presence so they don't need to re-download the list 
too often from the
server.
7. I estimate that the maximum number of users in this moment is 50000 and 
rising (considering the
number of downloads per day) so I think there won't be more than 20000 
simultaneous connected
users at a moment of the day. This will generate a list of aprox 0.5MB which is 
too big. So in
order to decrease the download:
-compression needed
-more than a list is required

So if you have any better idea please let me know.


If I choose Christianity then the Islamic will say I'm a pagan.
If I choose Islamic then the Buddhism will say I'm a pagan.
If I chose Buddhism then the Jewish will say I'm pagan.
If I choose no God then everybody will say I'm pagan.
Please, can I be free? Can you NOT tell me how I should live MY life?

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
__________________________________________________
Delphi-Talk mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi-talk

Reply via email to