Squirrel/Server/Functions/Sockets/Delete
From Liberty Unleashed Wiki
(Difference between revisions)
(New page: __NOTOC__ This function deletes the given socket. == Syntax == <code>bool Socket.Delete()</code> == Arguments == * '''none''' == Example == {{Squirrel/NeedsExample}} <code lang="squi...) |
(→Example) |
||
Line 14: | Line 14: | ||
{{Squirrel/NeedsExample}} | {{Squirrel/NeedsExample}} | ||
<code lang="squirrel"> | <code lang="squirrel"> | ||
− | + | function onScriptUnload( ) | |
+ | { | ||
+ | p_Socket.Delete(); | ||
+ | } | ||
</code> | </code> | ||
+ | |||
+ | This will delete the socket associated with p_Socket, this was created in the [[Squirrel/Server/Events/Misc/onScriptLoad|onScriptLoad]] event. | ||
=== Notes === | === Notes === | ||
− | + | The call [[Squirrel/Server/Events/Misc/onScriptUnload|onScriptUnload]] was used in in this example. More info about this in the corresponding page. | |
== Related Functions == | == Related Functions == | ||
{{Squirrel/Server/Functions/Sockets}} | {{Squirrel/Server/Functions/Sockets}} |
Revision as of 02:29, 8 March 2010
This function deletes the given socket.
Syntax
bool Socket.Delete()
Arguments
- none
Example
This function needs an example. You can help us complete the wiki by writing one, or maybe even more :o
function onScriptUnload( ) { p_Socket.Delete(); }
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.