rednet.unhost

From ComputerCraft Wiki
Revision as of 06:07, 29 March 2014 by Bomb Bloke (Talk | contribs) (Created page with "{{lowercase}} {{Function |name=rednet.unhost |args={{type|string}} protocol, {{type|string}} hostname |returns=Nothing |api=rednet |addon=ComputerCraft |desc=Assuming the syst...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Grid Redstone.png  Function rednet.unhost
Assuming the system was previously registered on the rednet network as using a given protocol under a given name, it'll no longer respond to rednet.lookup() requests until rednet.host()ed again.
Syntax rednet.unhost(string protocol, string hostname)
Returns Nothing
Part of ComputerCraft
API rednet

Examples

Grid paper.png  Example
De-registers the system as using the protocol "futonFolderComs" under the hostname "futonFolderServer".
Code
rednet.unhost("futonFolderComs","futonFolderServer")