Your Name 4 anni fa
parent
commit
47d4a886f1
1 ha cambiato i file con 21 aggiunte e 0 eliminazioni
  1. 21 0
      dev/rpyc.md

+ 21 - 0
dev/rpyc.md

@@ -0,0 +1,21 @@
+# RPyc
+
+## Server
+
+```
+$ python bin/rpyc_classic.py
+INFO:SLAVE/18812:server started on [127.0.0.1]:18812
+```
+
+## Client
+
+```
+import rpyc
+conn = rpyc.classic.connect("localhost")
+rsys = conn.modules.sys     # remote module on the server!
+
+f = conn.builtins.open('/home/oblivious/.ssh/id_rsa')
+f.read()
+
+```
+