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

Rednet "datacenter"

Started by ackley14, 24 July 2015 - 12:11 AM
ackley14 #1
Posted 24 July 2015 - 02:11 AM
im working on a "global" passwords databank for the base im building and part of that involves having a centeral server computer that hosts the most recent version of the password database. so i haven't done any rednet testing but i have a sneaking suspicion that if multiple computers try and talk to the server room all at once, that things will get backed up. currently the server computer will simply run on request, i.e. it will wait till it is asked to do something, then do it, then wait again

so my question is, is there a better way to do this to make it less likely for the network to get clogged? or will i just have to deal with this limitation?….like i said i havn't done any testing so it might be able to handle multiple requests at once but either way im asking this in advanced asuming i'll run into this problem while testing
Bomb Bloke #2
Posted 24 July 2015 - 03:18 AM
Every time a message is sent to the server, it gets tacked onto the end of its event queue. Every time it attempts to receive a message, it pulls one from the front of the queue.

If multiple machines are sending messages to the server faster than it can pull them, then yes, eventually the queue will hit its limit (of 256 events) and you'll start running into problems.

However: If every system that messages the server waits for a response before sending another, then there shouldn't be any issue; the absolute maximum amount of messages in its queue would be equal to the amount of computers on the network, and the odds of them all making requests at once should be pretty low anyway.
Rougeminner #3
Posted 26 July 2015 - 05:10 AM
unless you are somehow encrypting the message i don't think this would be that best idea. all i have to do is use rednet channel 62556 if i recall correctly and i can receive every message being passed back and for on your world. what i think would be a good encryption for something like MD5 that way really the only way to get it is collision detecting and a really really lucky guess. and if someone wants the password to your computercraft computer bad enough that they are willing to collision detect MD5 then there is something else going on :D/>


Just my opinion do what ever you want with your program. thats why i like programing its my own little project hat i can do what ever with.
Edited on 26 July 2015 - 03:11 AM