createServerSocket
Networking::createServerSocket
Creates a ServerSocket.
Declaration
ServerSocketInterface* createServerSocket(uint16_t port, NetworkType networkType = NetworkType::UDP);
Parameters
Name |
Type |
Description |
---|---|---|
port |
uint16_t |
The network port to assign to the server. |
networkType |
The network type. |
Returns
The memory address to a ServerSocket.