Scripting/Squirrel/Functions/Socket.SetLostConnFunc: Difference between revisions

From Vice City Multiplayer
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing
(Created page with "Specify the function to call when the socket has lost it's connection. == Syntax == <pre>Socket.SetLostConnFunc( function )</pre> == Arguments == * ''string'' '''function'...")
 
No edit summary
 
(One intermediate revision by one other user not shown)
Line 11: Line 11:
== Notes ==
== Notes ==
As a client, this function has no arguments.
As a client, this function has no arguments.
As a server, this function gets passed a socket pointer, client id and client port.
 
As a server:
<pre>function lostConn( clientID, clientIP, clientPort )</pre>


== Example ==
== Example ==
Line 19: Line 21:


{{Scripting/Squirrel/Functions/Sockets}}
{{Scripting/Squirrel/Functions/Sockets}}
[[Category:Scripting/Squirrel/Functions/Sockets]]

Latest revision as of 21:56, 30 January 2017

Specify the function to call when the socket has lost it's connection.

Syntax

Socket.SetLostConnFunc( function )

Arguments

  • string function - The name of the function to call.

Notes

As a client, this function has no arguments.

As a server:

function lostConn( clientID, clientIP, clientPort )

Example

Please refer to the Socket Example for a advanced usage of all socket functions.

Related Functions