Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a P2P framework in c?

Tags:

c

frameworks

p2p

I try to implement some p2p functionality with c. Is there any kind of framework?

What do you think taking libtorrent (http://libtorrent.rakshasa.no/) and do some adaptation there?

Or does anyone knows a good c framework/library?

Update 1: More precise: i'd like to share small packages of data (metadata) between peers. The data packages should be distributed to every peer (every peer should have every data package).

Thanks

like image 848
Jonas Schnelli Avatar asked Oct 12 '11 10:10

Jonas Schnelli


2 Answers

Chimera is the successor to Tapestry, one of the original 4 P2P overlay networks (along with CAN, Pastry, and Chord). It's written in C: http://current.cs.ucsb.edu/projects/chimera/

Note that this is a base-level overlay network that you can build other stuff on top of (like messaging or file sharing).

like image 112
Canuck Avatar answered Oct 13 '22 03:10

Canuck


If you are trying to simulate P2P then this link(P2PSim) might be helpful http://pdos.csail.mit.edu/p2psim/

like image 21
lighthouse Avatar answered Oct 13 '22 04:10

lighthouse