Scripting/Squirrel/Functions/Socket.SetLostConnFunc

From Vice City Multiplayer [MIRROR]
Jump to: navigation, search

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