I have a setup with about 12 Serverracks and in each 4 servers = 48 servers...
all connected to each other...
they need to be connected because they share a bunch of adapters...
now i dont want to have 48 screens, for each server one, that looks ugly?
i research a little bit, there is a thread API which can start a event.pull("modem_message") - listener in the background of a server without interfering other processes...
(https://oc.cil.li/index.php?/topic/1728-multi-threaded-send-and-receive/&page=0#comment-7937)
but i cant get anything it working correctly...
it already did not work with only 1 serverrack and 2 servers inside...
1 server even doesnt receive the message from the other one...
now i await that the first server receives the message but nope, nothing happens...
whats wrong with it?
i want to make it like: i have big screen, one server shows on this screen, i type in "change_screen server3" then he switches the source-server and the screen show the console of server3 instead of server1
(i am not good at explaining and my english is bad i know)
can someone help me realize such a script... pleeeeeaaaaaasssse
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
I have a setup with about 12 Serverracks and in each 4 servers = 48 servers...
all connected to each other...
they need to be connected because they share a bunch of adapters...
now i dont want to have 48 screens, for each server one, that looks ugly?
i research a little bit, there is a thread API which can start a event.pull("modem_message") - listener in the background of a server without interfering other processes...
(https://oc.cil.li/index.php?/topic/1728-multi-threaded-send-and-receive/&page=0#comment-7937)
but i cant get anything it working correctly...
it already did not work with only 1 serverrack and 2 servers inside...
1 server even doesnt receive the message from the other one...
First server: (going to lua)
component.modem.open(123) ... returns true _, _, _, _, _, m = event.pull("modem_message"); print(m)
Second Server: (going to lua)
component.modem.open(123) ... returns true component.modem.broadcast(123, "test")
now i await that the first server receives the message but nope, nothing happens...
whats wrong with it?
i want to make it like: i have big screen, one server shows on this screen, i type in "change_screen server3" then he switches the source-server and the screen show the console of server3 instead of server1
(i am not good at explaining and my english is bad i know)
can someone help me realize such a script... pleeeeeaaaaaasssse
Link to post
Share on other sites