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

rednet pc scanning

Started by HurdeHack, 21 March 2012 - 03:27 PM
HurdeHack #1
Posted 21 March 2012 - 04:27 PM
is it possible that a pc can scan pc with rednet?
because i saw it on youtube and if looked for it in the forums i didnt found something
if there is a can can i have them i dont know how need to make that code
Liraal #2
Posted 21 March 2012 - 04:28 PM
define 'scan'
HurdeHack #3
Posted 21 March 2012 - 04:30 PM
how do u mean define scan?
Ian-Moone #4
Posted 21 March 2012 - 04:30 PM
i think he means to scan for somthing(search) :(/>/>
HurdeHack #5
Posted 21 March 2012 - 04:31 PM
i dont need a wordbook or else i want to code it
Liraal #6
Posted 21 March 2012 - 04:32 PM
i mean, tell what 'scan' should do in your opinion, then i can help
HurdeHack #7
Posted 21 March 2012 - 04:34 PM
i mean scanning computers on the network or rednet SCAN computers there IDS or else name
Liraal #8
Posted 21 March 2012 - 04:35 PM
not possible, unless you put some code on all the computers.
HurdeHack #9
Posted 21 March 2012 - 04:41 PM
but if the rednet is open on a pc is the pc Findable? or not?
Liraal #10
Posted 21 March 2012 - 04:47 PM
it is not, rednet is only passive, unless conducted via RP bundles, then computers send the 'data accepted' signal (color red of bundle). No way to index the IDs though.
HurdeHack #11
Posted 21 March 2012 - 05:00 PM
ok then whats the code so they can find?
Luanub #12
Posted 21 March 2012 - 07:59 PM
There is not real scan function. You would have to use some rednet and os commands to emulate the scan. It would be a simple rednet.broadcast() followed by a os.pullEvent("rednet_message") from the main computer, with a os.pullEvent with a rednet.send() on the computer being "scanned". You will have to use parallel or coroutines to get the computer that is doing the scan to handle the multiple incoming messages.

When you have some code and run into issues post it and we can go from there.