Commit 56ef3a31 authored by legoc's avatar legoc
Browse files

(split2) Added Server::getVersion()

parent 8ac35454
......@@ -2,6 +2,9 @@
-----
* Replaced protobuf by JSON.
* Added Server::getVersion() which returns the server version.
* Added Output::isEndOfLine() which returns true if the message terminates with an end of line.
* Removed Configuration::getRetries().
0.3.3
-----
......
......@@ -91,6 +91,10 @@ const std::string& Server::getUrl() const {
return Services::getUrl();
}
std::array<int, 3> Server::getVersion() const {
return Services::getVersion();
}
int Server::getPort() const {
return Services::getPort();
}
......
......@@ -56,6 +56,7 @@ public:
int getTimeout() const;
const std::string& getEndpoint() const;
const std::string& getUrl() const;
std::array<int, 3> getVersion() const;
int getPort() const;
bool isAvailable(int timeoutMs) const;
......
......@@ -99,6 +99,10 @@ const std::string& Services::getUrl() const {
return m_url;
}
std::array<int, 3> Services::getVersion() const {
return m_serverVersion;
}
int Services::getPort() const {
return m_port;
}
......
......@@ -43,6 +43,7 @@ public:
int getTimeout() const;
const std::string& getEndpoint() const;
const std::string& getUrl() const;
std::array<int, 3> getVersion() const;
int getPort() const;
const std::string& getStatusEndpoint() const;
......@@ -55,7 +56,7 @@ public:
std::unique_ptr<RequestSocketImpl> createRequestSocket(const std::string& endpoint, int timeout);
std::string m_serverEndpoint;
int m_serverVersion[3];
std::array<int, 3> m_serverVersion;
std::string m_url;
int m_port;
int m_statusPort;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment