Add 'getDisplayName' file.

This commit is contained in:
JoelKatz
2013-03-21 06:03:17 -07:00
parent 9b20a3ae71
commit b0c694195c

View File

@@ -117,6 +117,7 @@ public:
//bool operator == (const Peer& other);
std::string& getIP() { return mIpPort.first; }
std::string getDisplayName() { return mCluster ? mNodeName : mIpPort.first; }
int getPort() { return mIpPort.second; }
void setIpPort(const std::string& strIP, int iPort);