diff options
Diffstat (limited to 'PlexServer.cpp')
-rw-r--r-- | PlexServer.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/PlexServer.cpp b/PlexServer.cpp index 4eb1245..5675009 100644 --- a/PlexServer.cpp +++ b/PlexServer.cpp @@ -31,7 +31,14 @@ PlexServer::PlexServer(std::string data, std::string ip) } } -std::string PlexServer::GetUri() { +PlexServer::PlexServer(std::string ip, int port) +{ + m_sIpAddress = ip; + m_nPort = port; +} + +std::string PlexServer::GetUri() +{ return std::string("http://") + m_sIpAddress + ":" + std::string(itoa(m_nPort)); } |