Compare commits

..

No commits in common. "jira/GUACAMOLE-600-VNC" and "master" have entirely different histories.

3 changed files with 1 additions and 22 deletions

View File

@ -36,7 +36,6 @@
const char* GUAC_VNC_CLIENT_ARGS[] = {
"hostname",
"port",
"timeout",
"read-only",
"encodings",
GUAC_VNC_ARGV_USERNAME,
@ -109,11 +108,6 @@ enum VNC_ARGS_IDX {
*/
IDX_PORT,
/**
* The number of seconds to wait for the connection before timing out.
*/
IDX_TIMEOUT,
/**
* "true" if this connection should be read-only (user input should be
* dropped), "false" or blank otherwise.
@ -411,10 +405,6 @@ guac_vnc_settings* guac_vnc_parse_args(guac_user* user,
guac_user_parse_args_int(user, GUAC_VNC_CLIENT_ARGS, argv,
IDX_PORT, 0);
settings->timeout =
guac_user_parse_args_int(user, GUAC_VNC_CLIENT_ARGS, argv,
IDX_TIMEOUT, GUAC_VNC_DEFAULT_CONNECTION_TIMEOUT);
settings->username =
guac_user_parse_args_string(user, GUAC_VNC_CLIENT_ARGS, argv,
IDX_USERNAME, NULL);

View File

@ -25,11 +25,6 @@
#include <stdbool.h>
/**
* The default number of seconds to wait for a connection before timing out.
*/
#define GUAC_VNC_DEFAULT_CONNECTION_TIMEOUT 10
/**
* The filename to use for the screen recording, if not specified.
*/
@ -50,11 +45,6 @@ typedef struct guac_vnc_settings {
*/
int port;
/**
* The number of seconds to wait for the connection before timing out.
*/
int timeout;
/**
* The username given in the arguments.
*/

View File

@ -201,10 +201,9 @@ rfbClient* guac_vnc_get_client(guac_client* client) {
rfb_client->MallocFrameBuffer = guac_vnc_malloc_framebuffer;
rfb_client->canHandleNewFBSize = 1;
/* Set hostname, port, and timeout */
/* Set hostname and port */
rfb_client->serverHost = strdup(vnc_settings->hostname);
rfb_client->serverPort = vnc_settings->port;
rfb_client->connectTimeout = vnc_settings->timeout;
#ifdef ENABLE_VNC_REPEATER
/* Set repeater parameters if specified */