summaryrefslogtreecommitdiffstats
path: root/client/red_client.h
diff options
context:
space:
mode:
authorYonit Halperin <yhalperi@redhat.com>2011-09-20 14:59:36 +0300
committerYonit Halperin <yhalperi@redhat.com>2011-11-02 11:30:31 +0200
commitc39d842ff16be4303c48b4faa19f22cd7312b3c7 (patch)
tree2e1128735c57ab7b06bc8b1875a4114f61c656bc /client/red_client.h
parent3a1473760c0bb5da719e39ebe5cce02f5325904c (diff)
downloadspice-c39d842ff16be4303c48b4faa19f22cd7312b3c7.tar.gz
spice-c39d842ff16be4303c48b4faa19f22cd7312b3c7.tar.xz
spice-c39d842ff16be4303c48b4faa19f22cd7312b3c7.zip
client: support semi-seamless migration between spice servers with different protocols.
It can't actually happen right now, since switch-host migration scheme will take place if the src/target server has protocol 1. (cherry picked from commit 4b2bf4d88c253502003aa5e4b93a045742eec9b4 branch 0.8)
Diffstat (limited to 'client/red_client.h')
-rw-r--r--client/red_client.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/red_client.h b/client/red_client.h
index 20d5ffb7..f4cd46b6 100644
--- a/client/red_client.h
+++ b/client/red_client.h
@@ -82,6 +82,7 @@ private:
Mutex _lock;
Condition _cond;
int _pending_con;
+ int _protocol;
};
class ChannelFactory {
@@ -238,7 +239,7 @@ public:
void activate_interval_timer(Timer* timer, unsigned int millisec);
void deactivate_interval_timer(Timer* timer);
- void set_target(const std::string& host, int port, int sport);
+ void set_target(const std::string& host, int port, int sport, int protocol = 0);
void set_password(const std::string& password) { _password = password;}
void set_auto_display_res(bool auto_display_res) { _auto_display_res = auto_display_res;}
void set_display_setting(DisplaySetting& setting) { _display_setting = setting;}