Menu

Home

Agencys

Welcome to the ShareNet wiki. Sharenet is a free project based on the p2p concept. Our aim is to create a network with hundreds of nodes that will relay messages to all the peers that they will have stored in their server list.

In order to make the relay easy to setup, we have decided to write it in PHP. You can download it in the ShareNet Relay folder. You just have to upload it at the root of your website and the relay will be working. However, when you setup a relay, it doesn't know any other peer. You will have to add a user in data/config/user.lst and send a message to another relay to make it add your server.

To send a message you can use the function written at the top of the relay.php file or you can use the SharenetLib which includes many functions to manage your relay. Of course you can write a script from scratch but it's very advised to use an existing script.

Every messages are stored into the data/ folder: hash.shm (ShareNet Message).
The relay is just the base, you can create everything you want: a website to see the messages on the network, to send a message, etc. The relay script checks if the message has been really sent by the host specified during the request.

For example, if a message is sent by Bob on mydomain.com:80 to myrelay.com:80 which sends it to myfinalrelay.com:8080, the last relay will receive:

Hash: ...
Author: Bob@mydomain.com:80
From: myrelay.com:80
Date: ...
Message: ...

And this relay will add the 2 servers into its list.

Share this project, install the relay and post the address! :)

Our relay address is: opensource.agencys.eu:80 add it in your data/config/serv.lst file


MongoDB Logo MongoDB