This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
minizbot2012's profile picture

[HTTP] PSRedhttp

Started by minizbot2012, 01 January 1970 - 01:00 AM
minizbot2012 #1
Posted 01 January 1970 - 01:00 AM
Rednet over the interwebs? heck yes!

This simple program acts as a repeater between rednet and the interwebs and back!
The server software is written in python on Google App Engine, can have a main id, a local link id, and a remote link.
The main id is the one to use for grouping together users.
The local link id is that client's receiving address, and the remote link's is the other computer's recieving address
To run first you need to get the program by running:

pastebin get QdN1ppY4 psredhttp

and to run the client on a computer:

psredhttp redhttp <mainid> <local link id> <remote link id>
ex. to run on cl1
psredhttp redhttp cl 1 2
and cl2
psredhttp redhttp cl 2 1
The two computers above are now linked, any rednet messages entering that computer will transfer the message to the other computer and vice versa.

gratz to LDDestroier for twisting my arm into making this
InDieTasten #2
Posted 01 January 1970 - 01:00 AM
This is amazing *O*
+1
LDDestroier #3
Posted 01 January 1970 - 01:00 AM
Yer arm were askin' fur a gud twistin (also thanks)
LDDestroier #4
Posted 01 January 1970 - 01:00 AM
I think I got a bug, even when psredhttp is running (under main ID 'test') programs don't see a modem and close. I think this can be fixed by fooling the computer into thinking that there is a modem on an unused side (like 'bottom').

EDIT: Woops, might've done it wrong.

EDIT EDIT: Just did it right this time, it doesn't work when I use 'rednet.broadcast' on the "lua" program and 'rednet.receive' on another linked computer. It also doesn't make a program like "chat" work.
Edited by
minizbot2012 #5
Posted 01 January 1970 - 01:00 AM
Fixes for issues above sent, please update your program, and now you can run more than 1 daemon at a time for larger ring networks, and fixed a core issue.