diff --git a/.DS_Store b/.DS_Store index 97c51a2..e938861 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/Bindings/Haskell/lib/API.hs b/Bindings/Haskell/lib/API.hs index e1b78d3..0cc616e 100644 --- a/Bindings/Haskell/lib/API.hs +++ b/Bindings/Haskell/lib/API.hs @@ -33,7 +33,7 @@ import CLI , spawnProcP2PRC ) -import System.Environment (lookupEnv) +-- import System.Environment (lookupEnv) diff --git a/Docs/index.html b/Docs/index.html index 27889d0..56c1702 100644 --- a/Docs/index.html +++ b/Docs/index.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- +
+
+// Do ensure that the docker command does not need sudo to run sudo chmod 666 /var/run/docker.sock
+make
.bashrc
+
export P2PRC=/<PATH>/p2p-rendering-computation
export PATH=/<PATH>/p2p-rendering-computation:${PATH}
+p2prc -s
+p2prc --specs=<ip address>
--gpu if you know the other machine has a gpu.
-+p2prc --touch=<server ip address> -p <number of ports> --gpu
+p2prc --rm=<server ip address> --id=<docker container id>
+p2prc --as=<server ip address you want to add>
+p2prc --us
+p2prc --ls
+p2prc --ni
+p2prc --tc
+p2prc --plugin <plugin name> --id <container id or group id>
+p2prc --cgroup
+p2prc --group <group id> --id <container id>
+p2prc --groups
+p2prc --group <group id>
+p2prc --rmcgroup --group <group id> --id <container id>
+p2prc --rmgroup <group id>
+p2prc --pp <repo link>
+p2prc --rp <plugin name>
+p2prc --amd "custom metadata"
Allows to expose remote ports from a machine in the P2P network.
-+p2prc --mp <port no to map> --dn <domain name to link Mapped port against>
This is to ensure ports on remote machines on the P2PRC can be easily opened.
-+p2prc --mp <port no to map> --dn <domain name to link Mapped port against> --ra <remote server address>@@ -561,7 +533,6 @@ p2prc --mp <port no to map> --dn <domain name to link Mapped port again
Figure 1: UML diagram of P2P module
@@ -592,7 +563,6 @@ functions and structs. The sub topics below will mention the implementations of each functionality in depth./FRPPort+http://<turn server ip>:<server port no>/FRPport@@ -708,7 +674,6 @@ func main() {
.so and .h from t
compiler.
+# run cd Bindings/ # list files @@ -778,7 +739,6 @@ ls Client.go
+
func <Function name> (output *C.char) {
<response>,<error> := <P2PRC function name>(<parameters if needed>)
if <error> != nil {
@@ -877,13 +832,12 @@ func <Function name> (output *C.char) {
P2PRC officially supports Haskell bindings and will further support @@ -936,7 +889,6 @@ project using Haskell to build orchestrators on top of P2PRC.
/FRPPort+http://<turn server ip>:<server port no>/FRPport@@ -1071,16 +1018,12 @@ func main() {
Let's try to setup a really easy program (Let's do with Linkwarden @@ -1112,36 +1054,38 @@ with docker compose :) ). This is under the assumption you have docker compose installed on your local machine.
-mkdir linkwarden && cd linkwarden ++mkdir linkwarden && cd linkwarden curl -O https://raw.githubusercontent.com/linkwarden/linkwarden/refs/heads/main/docker-compose.yml curl -L https://raw.githubusercontent.com/linkwarden/linkwarden/refs/heads/main/.env.sample -o ".env"+Environment configuration
--vim .env ++vim .env # Change values NEXTAUTH_URL=https://<DOMAIN NAME>/api/v1/auth NEXTAUTH_SECRET=VERY_SENSITIVE_SECRET POSTGRES_PASSWORD=CUSTOM_POSTGRES_PASSWORD+Run linkwarden!
--docker compose up ++docker compose up+If setup correctly linkwarden should @@ -1157,34 +1101,38 @@ Time to setup P2PRC
Run p2prc as a background
--p2prc -s & ++p2prc -s &+Run map port and domain mapping
--p2prc --mp 3000 --dn <DOMAIN NAME> ++p2prc --mp 3000 --dn <DOMAIN NAME>+Sample response
-- { ++{ "IPAddress": "217.76.63.222", "PortNo": "61582", "EntireAddress": "217.76.63.222:61582" }+Add DNS entry
--A entry 217.76.63.222 ++A entry 217.76.63.222+Your done now just head to the DOMAIN NAME you added. @@ -1196,27 +1144,16 @@ ex: https://linkwarden.akilan.io
Consists of personal loideas for the future of P2PRC. At moment only has main contributors writiing to this.
This stems from a personal issue I have when doing research @@ -1232,9 +1169,8 @@ and would introduce a new layer fault tolerance within a local network nodes.
We build a cool set possibilities before and use this to build up the implementation @@ -1265,8 +1201,8 @@ weight hypervisors.
Figure 2: Implementation idea (To be improved upon)
@@ -1292,8 +1228,8 @@ other nodes can access the Morello board who have permission access.