Squirrel/Server/Functions/Sockets/Delete
From Liberty Unleashed Wiki
(Difference between revisions)
(→Example) |
|||
Line 1: | Line 1: | ||
− | + | {{Squirrel/Title|Socket.Delete}} | |
This function deletes the given socket. | This function deletes the given socket. | ||
Latest revision as of 09:22, 11 October 2010
This function deletes the given socket.
[edit] Syntax
bool Socket.Delete()
[edit] Arguments
- none
[edit] Example
function onScriptUnload( ) { p_Socket.Delete(); }
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.