Difference between revisions of "Rednet.unhost"

From ComputerCraft Wiki
Jump to: navigation, search
(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...")
 
m (Navigation template)
 
Line 6: Line 6:
 
|api=rednet
 
|api=rednet
 
|addon=ComputerCraft
 
|addon=ComputerCraft
|desc=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|rednet.lookup()]] requests until [[rednet.host|rednet.host()]]ed again.
+
|desc=Assuming the system was previously registered on the rednet network as using the given [[Rednet (API)#Protocols|protocol]] under the given name, it'll no longer respond to [[rednet.lookup|rednet.lookup()]] requests under that combination until it's [[rednet.host|rednet.host()]]ed again.
 
|examples=
 
|examples=
 
{{Example
 
{{Example
Line 13: Line 13:
 
}}
 
}}
 
}}
 
}}
 +
 +
{{RednetAPIFunctions}}
  
 
[[Category:API_Functions]]
 
[[Category:API_Functions]]

Latest revision as of 06:33, 6 June 2014


Grid Redstone.png  Function rednet.unhost
Assuming the system was previously registered on the rednet network as using the given protocol under the given name, it'll no longer respond to rednet.lookup() requests under that combination until it's 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")


Grid disk.png Rednet API Functions
rednet.open - rednet.close - rednet.send - rednet.broadcast - rednet.receive - rednet.isOpen - rednet.host - rednet.unhost - rednet.lookup