Scripting/Squirrel/Functions/NewSocket
From Vice City Multiplayer [MIRROR]
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.
Notes
The dataReceivedFunc is like this:
function dataReceived( data )
Example
Please refer to the Socket Example for a advanced usage of all socket functions.