Squirrel/Server/Functions/Sockets/Delete
From Liberty Unleashed Wiki
(Difference between revisions)
(→Example) |
(→Example) |
||
Line 19: | Line 19: | ||
</code> | </code> | ||
− | This will delete the socket associated with p_Socket, this was created in the [[Squirrel/Server/ | + | This will delete the socket associated with p_Socket, this was created in the socket [[Squirrel/Server/Functions/Sockets/Connect|Connect]] function. |
=== Notes === | === Notes === |
Revision as of 02:31, 8 March 2010
This function deletes the given socket.
Syntax
bool Socket.Delete()
Arguments
- none
Example
function onScriptUnload( ) { p_Socket.Delete(); }
This will delete the socket associated with p_Socket, this was created in the socket Connect function.
Notes
The call onScriptUnload was used in in this example. More info about this in the corresponding page.