createServerSocket

NetworkingInterface::createServerSocket

Creates a server socket.

Declaration

virtual ServerSocketInterface* createServerSocket(uint16_t port, NetworkType networkType = NetworkType::UDP) = 0;

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 server socket.