Squirrel/Server/Functions/Sockets/Stop
From Liberty Unleashed Wiki
(Difference between revisions)
(→Example) |
|||
Line 1: | Line 1: | ||
− | + | {{Squirrel/Title|Socket.Stop}} | |
This function stops the given socket. | This function stops the given socket. | ||
Latest revision as of 10:23, 11 October 2010
This function stops the given socket.
[edit] Syntax
bool Socket.Stop()
[edit] Arguments
- none
[edit] Example
function onScriptLoad( ) { p_Socket.Stop( ); }
On script unload this will stop a socket from listening.
[edit] Notes
The call onScriptUnload was used in in this example. More info about this in the corresponding page.