connectToServer

ClientSocket::connectToServer

Connects the client to a server.

Declaration

void connectToServer(const std::string& ipAddress, uint16_t port);

Parameters

Name

Type

Description

ipAddress

const std::string&

The IP address of the server to connect to.

port

uint16_t

The port of the server to connect to.

Returns

None.