ComputerCraft Forums

ComputerCraft => Programs => Topic started by: ComputerCrafter on Nov 28, 2024, 12:14 PM

Title: Barebones Ping Program
Post by: ComputerCrafter on Nov 28, 2024, 12:14 PM
So after seeing shorun's sysmon, I've thought about making it an independent program without any dependencies.

My program here uses Rednet to transmit a ping signal to the receiving computer, where another program relays a signal back within 6 seconds, if it not, the ping fails.
The signals are sent on the same channel as the receiving computer's ID, and it also applies both ways.

The program also auto-detects modems placed directly on the computer, remote peripherals are not automatically detected.
To successfully ping a computer, you need to install the server file on the receiving end and the main program on the input end.

Pastebin codes are here:
-ServerFile: aaNPhNKP
-MainProgram: FwW35pqX
If you want to make the server run the program automatically, just make a startup file and run it using multishell or parallel.

Screenshots:
(https://camo.tmpim.com/37a4144d772e9a265fa6938de7c2c5ccf32b037a/68747470733a2f2f692e706f7374696d672e63632f794e79487a376b682f696d6167652e706e67)
(https://camo.tmpim.com/89b602461cfc8614af62ab8104594e296cf85f41/68747470733a2f2f692e706f7374696d672e63632f46467177385954352f696d6167652e706e67)
Top: Server / Bottom: Client