Squirrel/Server/Functions/Sockets/Delete

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Example)
 
(2 intermediate revisions by one user not shown)
Line 1: Line 1:
__NOTOC__
+
{{Squirrel/Title|Socket.Delete}}
 
This function deletes the given socket.
 
This function deletes the given socket.
  
Line 12: Line 12:
 
== Example ==
 
== Example ==
  
{{Squirrel/NeedsExample}}
 
 
<code lang="squirrel">
 
<code lang="squirrel">
 
function onScriptUnload( )
 
function onScriptUnload( )
Line 20: Line 19:
 
</code>
 
</code>
  
This will delete the socket associated with p_Socket, this was created in the [[Squirrel/Server/Events/Misc/onScriptLoad|onScriptLoad]] event.
+
This will delete the socket associated with p_Socket, this was created in the socket [[Squirrel/Server/Functions/Sockets/Connect|Connect]] function.
  
 
=== Notes ===
 
=== Notes ===

Latest revision as of 09:22, 11 October 2010

Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This function deletes the given socket.

[edit] Syntax

  1. bool Socket.Delete()

[edit] Arguments

  • none

[edit] 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 socket Connect function.

[edit] Notes

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

[edit] Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox