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

Simple file server/ Messaging service

Started by sk8mn, 29 May 2014 - 09:53 PM
sk8mn #1
Posted 29 May 2014 - 11:53 PM
Hi, my friend expects a lot from people and while on holiday this week has set me the task of creating a file server. I really don't mind whether it's wired or wireless but I hope to be able to show him that I can save a programme to the "cloud" and copy it back onto another computer (If this is possible) I have semi figured out how to set up a messaging service between multiple computers but wired only so if anyone could give me some pointers or even paste some code in that would be great!
Agent Silence #2
Posted 30 May 2014 - 12:36 AM
Well, you could serialize messages then send through rednet then de-serialize them on the receiving comp.
use textutils.serialize to serialize stuff
apemanzilla #3
Posted 30 May 2014 - 05:21 AM
Super cheaty way:
Make a wired network, and connect the computers to a disk drive. Simply stick in a disk and anything written/read to/from the "disk" folder will be saved to the disk and therefore will be accessible to all computers.

Not so cheaty way:
Take a look at the rednet API. You'll need one computer to receive the messages and manage the data, and the rest to send the messages and data.
sk8mn #4
Posted 30 May 2014 - 10:22 AM
Cheers Guys