[gnome-boxes] vnc: Connect using fd if passed fd creation function
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] vnc: Connect using fd if passed fd creation function
- Date: Wed, 12 Aug 2015 10:04:18 +0000 (UTC)
commit 9e51d7ec04e2cea870fc414bee407c021e2fe2bc
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Wed Aug 12 11:01:20 2015 +0100
vnc: Connect using fd if passed fd creation function
src/vnc-display.vala | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/vnc-display.vala b/src/vnc-display.vala
index 590edcc..8cf5d42 100644
--- a/src/vnc-display.vala
+++ b/src/vnc-display.vala
@@ -125,7 +125,11 @@ private class Boxes.VncDisplay: Boxes.Display {
display.set_credential (DisplayCredential.PASSWORD, password);
display.set_credential (DisplayCredential.CLIENTNAME, "boxes");
- display.open_host (host, port.to_string ());
+ if (open_fd != null) {
+ var fd = open_fd ();
+ display.open_fd_with_hostname (fd, host);
+ } else
+ display.open_host (host, port.to_string ());
}
public override void disconnect_it () {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]