socket.start

From GTA Connected
Jump to navigation Jump to search

Method Server and Client All Games Online and Offline

Server 1.0.0, Client 1.0.0

void socket.start(int port, int connectionLimit)

Description

The socket.start method is used to start listening on specified port.

Parameters

Type Name Presence Default Value Description
int
port
required n/a The port for the server to listen on.
int
connectionLimit
required n/a The limit for the amount of connections.

Returns

Success Returns

Type Description
void
This method doesn't return any values on success.

Failure Returns

Type Value
void
n/a

Types

This method can only be used on type:

Socket

Notes

  • Sockets can be either a server (listens for connections) or a client (connects to another socket). This function starts the socket in server-mode.

Examples

There aren't any examples for this method.

Compatibility

There isn't any compatibility information for this method.

Related

Server Related

newSocket

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


Client Related

newSocket

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