diff options
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 |
