From user-return-3672-archive-asf-public=cust-asf.ponee.io@guacamole.apache.org Wed Apr 4 20:49:52 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id CFD0E18064F for ; Wed, 4 Apr 2018 20:49:51 +0200 (CEST) Received: (qmail 71619 invoked by uid 500); 4 Apr 2018 18:49:45 -0000 Mailing-List: contact user-help@guacamole.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@guacamole.apache.org Delivered-To: mailing list user@guacamole.apache.org Received: (qmail 71609 invoked by uid 99); 4 Apr 2018 18:49:45 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Apr 2018 18:49:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 6D05BC00E0 for ; Wed, 4 Apr 2018 18:49:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.279 X-Spam-Level: * X-Spam-Status: No, score=1.279 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=guac-dev-org.20150623.gappssmtp.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id HAEjOLJR53E3 for ; Wed, 4 Apr 2018 18:49:43 +0000 (UTC) Received: from mail-qt0-f181.google.com (mail-qt0-f181.google.com [209.85.216.181]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 620005F1F0 for ; Wed, 4 Apr 2018 18:49:43 +0000 (UTC) Received: by mail-qt0-f181.google.com with SMTP id v11so24227044qtj.6 for ; Wed, 04 Apr 2018 11:49:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=guac-dev-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=XLIaepizSIjtktZy+SDjW0ZAQBh2wqAhLdd+InJqT3c=; b=2Gpvu2f75tZ2GfsWjGTC8PZEy3QnFlQR8xXTuFaPC/l1AMDaKzUyaIMVP0L6j9LyCd 1X+Fvr3bOWoVIQ1v5pCb1I9zA+jYP3XTA80NVolQBhhhj/1KQJM+hFoNrIk66c6yIxPr 94Flpi3ZVwG6QhPfVmc9pCnzDm+IBEDzaPIBIpR3gfFTtOCQ39Eza+xgwal5XVQpXQdJ An7o6gwQ0XUhV1CVRHf7YBFynzlDjEhhPw5TRvsOdcLV5FazsncLrDN8mVaFjTMrCTWz 0KcQ84JOdrBcVozjj3XIHNJ+bShqhPEwloRI1Sr46ZPi3p+ywmGg1PnvRKUyzECC+zKw DU6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=XLIaepizSIjtktZy+SDjW0ZAQBh2wqAhLdd+InJqT3c=; b=GaXN95l4ravKV+vychpFi6RYRAIGMhYyB/TuaU9XEpPHu4urjid/q2OdZ7UFgBmhDP BIfE0SBStRczltkR0TXydWu2DZ37YBpyLPkoK66tPl3H844ahUgYw4/i0dYzux6sN3mY ngOV8Mum0x8N0HumWbLXTepyA+6fPn69R9jpNW7cqW8Zk0YdngrYy0GqOy3MSGi/UXHF bEQ0HRNH+clI3GQ8k+PcQGWdmKqy9yG9Kl46ZXXqJq+0zc4f8FmcRrDXmrkvfgzHubFi hF+yF9398ONystWzkrpDun3adAZQ6OozH5DNbUlpvtg3MbDtIEfPjuY9Wqct6F+lQCvv 4sfA== X-Gm-Message-State: ALQs6tDA8r1GEH2rtpF87t5PChA42SltOBhRyEEBLKKXICMHXZz7yqdE 4/VGAO2qqN4OewyGA+rwbPI9AqfuN2mYamQTSQSphQ== X-Google-Smtp-Source: AIpwx4/Sjp+aCti1AVR+g4/s/M+MeTO2+mcRQNNQHlPwMxV4c7edaafMRAGxmqeTqowDa4nXS2BWTeW8DLuZsME7ezc= X-Received: by 10.200.56.53 with SMTP id q50mr28077161qtb.313.1522867776820; Wed, 04 Apr 2018 11:49:36 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Mike Jumper Date: Wed, 04 Apr 2018 18:49:25 +0000 Message-ID: Subject: Re: Custom page to show shared connection Guacamole To: user@guacamole.apache.org Content-Type: multipart/alternative; boundary="001a113e80a0e0a77905690a4831" --001a113e80a0e0a77905690a4831 Content-Type: text/plain; charset="UTF-8" On Wed, Apr 4, 2018, 10:26 Neil Canham wrote: > I've been working through understanding how Guacamole hangs together. > Having tried out the connection sharing (using and RDP connection) via the > out-of-the-box GUI, I have proceeded to extending the example html page and > servlet example in the manual to create my own customised view. All > working well with VNC - so the obvious next question is how can I extend > the example to show a shared RDP connection, assuming that I've got the > link? > Just as it's your code that determines the details of the connection when it's initially established, it's also your code that dictates how/if connections are shared, and even if a concept like "share links" are involved. The ConfiguredGuacamoleSocket class provides a function called getConnectionID() which returns the unique ID of the connection generated by guacd at the time it was established. If you supply this value to another instance of ConfiguredGuacamoleSocket that uses the same instance of guacd, the resulting connection will share the original. How you store/retrieve/track that ID, and when you choose to use such an ID instead of creating a new connection, are entirely up to you. - Mike --001a113e80a0e0a77905690a4831 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, = Apr 4, 2018, 10:26 Neil Canham <neil.canham@gmail.com> wrote:
I've been working through under= standing how Guacamole hangs together.=C2=A0 Having tried out the connectio= n sharing (using and RDP connection) via the out-of-the-box GUI, I have pro= ceeded to extending the example html page and servlet example in the manual= to create my own customised view.=C2=A0 All working well with VNC - so the= obvious next question is how can I extend the example to show a shared RDP= connection, assuming that I've got the link?=C2=A0
<= /span>

Just as it's your code that determines the details of the con= nection when it's initially established, it's also your code that d= ictates how/if connections are shared, and even if a concept like "sha= re links" are involved.

The ConfiguredGuacamoleSocket class provides a function called getConn= ectionID() which returns the unique ID of the connection generated by guacd= at the time it was established. If you supply this value to another instan= ce of=C2=A0ConfiguredGuacamoleSocket= that uses the same instance of guacd, the resulting connection will share = the original.

How you store/retrieve/track that ID, and when you choose to use suc= h an ID instead of creating a new connection, are entirely up to you.

=
- Mike

=
--001a113e80a0e0a77905690a4831--