Scripting/Squirrel/Functions/NewSocket

From Vice City Multiplayer
Revision as of 13:17, 7 August 2015 by Thijn (talk | contribs) (Created page with "This function will create a new Socket instance and return it's pointer. == Syntax == <pre>NewSocket( dataReceivedFunc )</pre> == Arguments == * ''string'' '''dataReceived...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing

This function will create a new Socket instance and return it's pointer.

Syntax

NewSocket( dataReceivedFunc )

Arguments

  • string dataReceivedFunc - The name of a function to call when data has been received.

Example

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

Related Functions