You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@guacamole.apache.org by mj...@apache.org on 2016/03/20 03:25:06 UTC
[36/50] incubator-guacamole-server git commit: GUAC-1164: Document
guac_rdp_handle_connection().
GUAC-1164: Document guac_rdp_handle_connection().
Project: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/commit/c336ce39
Tree: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/tree/c336ce39
Diff: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/diff/c336ce39
Branch: refs/heads/master
Commit: c336ce39e289c226b78c1d19cfc0cd7c0d014c50
Parents: db82c6f
Author: Michael Jumper <mi...@guac-dev.org>
Authored: Wed Mar 16 21:30:46 2016 -0700
Committer: Michael Jumper <mi...@guac-dev.org>
Committed: Wed Mar 16 21:30:46 2016 -0700
----------------------------------------------------------------------
src/protocols/rdp/rdp.c | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/blob/c336ce39/src/protocols/rdp/rdp.c
----------------------------------------------------------------------
diff --git a/src/protocols/rdp/rdp.c b/src/protocols/rdp/rdp.c
index 494a28d..083ca0d 100644
--- a/src/protocols/rdp/rdp.c
+++ b/src/protocols/rdp/rdp.c
@@ -691,6 +691,25 @@ static int rdp_guac_client_wait_for_messages(guac_client* client,
}
+/**
+ * Connects to an RDP server as described by the guac_rdp_settings structure
+ * associated with the given client, allocating and freeing all objects
+ * directly related to the RDP connection. It is expected that all objects
+ * which are independent of FreeRDP's state (the clipboard, display update
+ * management, etc.) will already be allocated and associated with the
+ * guac_rdp_client associated with the given guac_client. This function blocks
+ * for the duration of the RDP session, returning only after the session has
+ * completely disconnected.
+ *
+ * @param client
+ * The guac_client associated with the RDP settings describing the
+ * connection that should be established.
+ *
+ * @return
+ * Zero if the connection successfully terminated and a reconnect is
+ * desired, non-zero if an error occurs or the connection was disconnected
+ * and a reconnect is NOT desired.
+ */
static int guac_rdp_handle_connection(guac_client* client) {
guac_rdp_client* rdp_client = (guac_rdp_client*) client->data;