diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-04-13 00:12:50 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-04-13 00:12:50 +0100 |
| commit | ed0b3ee0c5a0ba11d3a1a1dfee8e71238bcab4bd (patch) | |
| tree | 6c27b0adc932533794a4378ea53c1fca3154f97d /src/lib/encode_server_description.h | |
| parent | 1d5ea1b139942bad5500ae40f0646da3fd29dc7f (diff) | |
Note and indicate servers with bad link version (#982).
Diffstat (limited to 'src/lib/encode_server_description.h')
| -rw-r--r-- | src/lib/encode_server_description.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/lib/encode_server_description.h b/src/lib/encode_server_description.h index 60fb0a29d..864b0fdc1 100644 --- a/src/lib/encode_server_description.h +++ b/src/lib/encode_server_description.h @@ -30,14 +30,17 @@ public: EncodeServerDescription () : _host_name ("") , _threads (1) + , _link_version (0) {} /** @param h Server host name or IP address in string form. * @param t Number of threads to use on the server. + * @param l Server link version number of the server. */ - EncodeServerDescription (std::string h, int t) + EncodeServerDescription (std::string h, int t, int l) : _host_name (h) , _threads (t) + , _link_version (l) {} /* Default copy constructor is fine */ @@ -52,6 +55,10 @@ public: return _threads; } + int link_version () const { + return _link_version; + } + void set_host_name (std::string n) { _host_name = n; } @@ -65,6 +72,8 @@ private: std::string _host_name; /** number of threads to use on the server */ int _threads; + /** server link (i.e. protocol) version number */ + int _link_version; }; #endif |
