VPTissue Reference Manual
|
Class for storing server info used on client-side. More...
#include <ServerInfo.h>
Public Member Functions | |
ServerInfo (QString name, QString address, int port) | |
Constructor. More... | |
ServerInfo (std::string name, std::string address, int port) | |
Constructor. More... | |
virtual | ~ServerInfo () |
Destructor. | |
QString | GetAddress () |
Return the address of the server. More... | |
QString | GetName () |
Return the name of the server. More... | |
int | GetPort () |
Return the port of the server. More... | |
void | Update (QString address, int port) |
Update values for server. More... | |
Class for storing server info used on client-side.
Definition at line 29 of file ServerInfo.h.
SimPT_Parex::ServerInfo::ServerInfo | ( | QString | name, |
QString | address, | ||
int | port | ||
) |
Constructor.
name | The name for the server |
address | The address of the server |
port | The port used by the server |
Definition at line 24 of file ServerInfo.cpp.
SimPT_Parex::ServerInfo::ServerInfo | ( | std::string | name, |
std::string | address, | ||
int | port | ||
) |
Constructor.
name | The name for the server |
address | The address of the server |
port | The port used by the server |
Definition at line 29 of file ServerInfo.cpp.
QString SimPT_Parex::ServerInfo::GetAddress | ( | ) |
Return the address of the server.
Definition at line 49 of file ServerInfo.cpp.
Referenced by SimPT_Parex::Protocol::Protocol().
QString SimPT_Parex::ServerInfo::GetName | ( | ) |
Return the name of the server.
Definition at line 44 of file ServerInfo.cpp.
int SimPT_Parex::ServerInfo::GetPort | ( | ) |
Return the port of the server.
Definition at line 54 of file ServerInfo.cpp.
Referenced by SimPT_Parex::Protocol::Protocol().
void SimPT_Parex::ServerInfo::Update | ( | QString | address, |
int | port | ||
) |
Update values for server.
address | The new address |
port | The new port number |
Definition at line 38 of file ServerInfo.cpp.