|
|
This class encapsulates information necessary to connect to a server.
ServerData (const unsigned int serverIdx, const QString& name, const unsigned int port) |
Create a new ServerData object.
Parameters:
serverIdx | Internal server index. |
name | Name (host) of the server. |
port | Connection port on the server. |
unsigned int getServerIdx () |
Get the server's internal index.
Returns: The internal server index of this server.
const QString& getHost () |
Get the server's host or IP.
Returns: A string containing the server's host, or IP address.
unsigned int getPort () |
Get the server's port.
Returns: The server's port to connect on.