newSocket

From GTA Connected
(Redirected from NewSocket)
Jump to navigation Jump to search

Function Server Only All Games Online and Offline

Server 1.0.0

Socket newSocket(function handler)

Description

The newSocket function is used to creates a socket, and assigns the incoming data handler function.

Parameters

Type Name Presence Default Value Description
function handler required n/a The scripting function to call with data read.

Returns

Success Returns

Type Description
Socket A socket handle.

Failure Returns

Type Value
null n/a

Callbacks

Notes

There aren't any notes for this function.

Examples

There aren't any examples for this function.

Compatibility

There isn't any compatibility information for this function.

Related

Server Related

newSocket

socket.close
socket.connect
socket.delete
socket.send
socket.sendClient
socket.start
socket.stop