createServerSocket

Script::createServerSocket

Creates a ServerSocket.

Declaration

ServerSocket* createServerSocket(uint16_t port, NetworkType networkType = NetworkType::UDP);

Parameters

Name

Type

Description

port

uint16_t

The network port to assign to the server.

networkType

NetworkType

The network type.

Returns

The memory address to a ServerSocket.