mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-26 22:13:17 +00:00
addon: Add getters for the server identification
This commit is contained in:
parent
f7038a0b27
commit
597a64701c
@ -218,6 +218,16 @@ public:
|
||||
return conn_ && conn_->using_tls();
|
||||
}
|
||||
|
||||
const std::string& server_id() const
|
||||
{
|
||||
return server_id_;
|
||||
}
|
||||
|
||||
const std::string& server_version() const
|
||||
{
|
||||
return server_version_;
|
||||
}
|
||||
|
||||
private:
|
||||
enum class transfer_mode {download, connect, upload};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user