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

[Question][Lua] Starting point for networking beyond chunks

Started by AronSora, 01 May 2012 - 01:08 AM
AronSora #1
Posted 01 May 2012 - 03:08 AM
Hi all,

I don't want an answer. But it this program possible and can I have a hint or a starting point. I want to program this so I can learn.

I want to use rednet to network with computers 100,000 blocks away. I want to do this by storing requests and passing them as chunks are unloaded and loaded. I want to have routers that handle the storage and requests. I know it will be slow, but I just want it for communication/filetransfer and maybe banking. Where would I start?
MysticT #2
Posted 01 May 2012 - 03:28 AM
Well, I guess you could do something like:
- computer sends message to router with the destination id.
- router gets the message and stores it (in a file so it's still there after unload).
- router sends the message to the destination if it's reachable, or to other router otherwise.
- when a message is received, it sends a confirmation to the sender, so it deletes the message.
- if the sender don't get the confirmation, wait some time and try again.
- repeat until the message gets to its destination.

It might be hard to code, but I think it's possible.
Good luck with the project :)/>/>
AronSora #3
Posted 02 May 2012 - 10:30 PM
Thanks, I'll post updates here. My only fear is having a time to live too high and the whole network crashing the server.