Squirrel/Server/Functions/Sockets/Delete

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Example)
(Example)
Line 12: Line 12:
 
== Example ==
 
== Example ==
  
{{Squirrel/NeedsExample}}
 
 
<code lang="squirrel">
 
<code lang="squirrel">
 
function onScriptUnload( )
 
function onScriptUnload( )

Revision as of 03:29, 8 March 2010

This function deletes the given socket.

Syntax

  1. bool Socket.Delete()

Arguments

  • none

Example

  1.  
  2. function onScriptUnload( )
  3. {
  4. p_Socket.Delete();
  5. }
  6.  

This will delete the socket associated with p_Socket, this was created in the onScriptLoad event.

Notes

The call onScriptUnload was used in in this example. More info about this in the corresponding page.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox