Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Cameo
cameo
Commits
56ef3a31
Commit
56ef3a31
authored
Oct 02, 2020
by
legoc
Browse files
(split2) Added Server::getVersion()
parent
8ac35454
Changes
5
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
56ef3a31
...
...
@@ -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
-----
...
...
src/cameo/Server.cpp
View file @
56ef3a31
...
...
@@ -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
();
}
...
...
src/cameo/Server.h
View file @
56ef3a31
...
...
@@ -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
;
...
...
src/cameo/Services.cpp
View file @
56ef3a31
...
...
@@ -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
;
}
...
...
src/cameo/Services.h
View file @
56ef3a31
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment