connectToServer =============== :doc:`/types/ClientSocketInterface/index`::connectToServer Connects the client to a server. Declaration ----------- .. code-block:: cpp virtual void connectToServer(const std::string& ipAddress, uint16_t port) = 0; Parameters ---------- .. list-table:: :width: 100% :header-rows: 1 :class: code-table * - 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.