You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<summary>Shuts down a connection that was opened with the <commandtag="open socket">open socket</command> or <commandtag="accept">accept</command> <glossarytag="command">command</glossary>.</summary>
<example>close socket (line 1 of the openSockets)</example>
</examples>
<description>
<p>Use the <b>close socket</b> <glossarytag="command">command</glossary> to release the connection when you're finished getting and sending data over it.</p><p/><p><b>Parameters:</b></p><p>The <i>socketID</i> is the identifier (set when you opened the <glossarytag="socket">socket</glossary>) of the <glossarytag="socket">socket</glossary> you want to close.</p><p/><p>The socket identifier starts with the IP address of the host the socket is connected to, and may optionally include a port number (separated from the IP address by a colon). If there is more than one socket connected to that host and port, you can specify which socket by appending the connection name or number that was assigned when the socket was opened, separated from the <glossarytag="port">port number</glossary> by a vertical bar (<code>|</code><a/>).</p>