Squirrel/Server/Functions/Sockets/Stop

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Example)
 
Line 1: Line 1:
__NOTOC__
+
{{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

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

This function stops the given socket.

[edit] Syntax

  1. bool Socket.Stop()

[edit] Arguments

  • none

[edit] Example

  1.  
  2. function onScriptLoad( )
  3. {
  4. p_Socket.Stop( );
  5. }
  6.  

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.

[edit] Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox