Click here to Skip to main content
15,861,168 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
I want to implement a program in linux using c/c++ to implement client server architecture using pocket programming. It should be such that when a user
Stores a file on server the server splits the file and stores it on 2 or more server. Whenever user retrieves the file, the server retrieves the file again from different server forwards all the fragments to the user and display it in single file.
Posted
Comments
Amir Mahfoozi 26-Dec-11 0:07am    
"pocket programming" or "socket programming" ?
Mohibur Rashid 26-Dec-11 3:42am    
I Like the assignment. Its a cool one.

By the way, How far have you done?? cause its not possible to do everything for you
Maximilien 26-Dec-11 7:39am    
that looks like a "bit torrent" technology...

1 solution

Basically what u are trying to do is sort of jobs a DDB(Distributed database) does.
So the best option is to follow this kind of skleton.
#Create an algorithm that splits up the file
#Have a central server that stores the index of file parts refrencing other servers.
#As soon as the query comes you have to regenerate the file on fly at listening server but its not necessary u generate the whole file at this server and a workaround for this is to use an algorithm that behaves like junction and tunnels the data coming from other servers while maintaining accuracy with client.

I think its not very tough job as so many frameworks are available these days and if u need to know more, try searching for the way a DDB works.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900