Difference between revisions of "Rednet.close"

From ComputerCraft Wiki
Jump to: navigation, search
(Parameter optional as of CC 1.6.)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
 
{{Function
 
{{Function
|name=rednet.close( side )
+
|name=rednet.close
|args=[[string (type)|string]] side ("left", "right", "top", "bottom", "front", "back")
+
|args=[<nowiki/> [[string (type)|string]] side ''("left" / "right" / "front" / "back" / "bottom" / "top")'' ]
 
|api=rednet
 
|api=rednet
 
|addon=ComputerCraft
 
|addon=ComputerCraft
|desc=Tells the computer that the side can no longer be used for networking.
+
|desc=Tells the computer that the [[modem]] on the specified side can no longer be used for rednet networking, or affects all sides if none are specified. ComputerCraft versions prior to 1.6 require that a side be specified.
 
|examples=
 
|examples=
 
{{Example
 
{{Example
|desc=Tells the computer that the side can no longer be used for networking.
+
|desc=Tells the computer to stop using the modem on the left for rednet purposes.
 
|code=rednet.close( "left" )
 
|code=rednet.close( "left" )
 
}}
 
}}
 
}}
 
}}
 +
 +
{{RednetAPIFunctions}}
 +
 +
[[Category:API_Functions]]

Latest revision as of 06:33, 6 June 2014


Grid Redstone.png  Function rednet.close
Tells the computer that the modem on the specified side can no longer be used for rednet networking, or affects all sides if none are specified. ComputerCraft versions prior to 1.6 require that a side be specified.
Syntax rednet.close([ string side ("left" / "right" / "front" / "back" / "bottom" / "top") ])
Returns nil
Part of ComputerCraft
API rednet

Examples

Grid paper.png  Example
Tells the computer to stop using the modem on the left for rednet purposes.
Code
rednet.close( "left" )


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