mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 05:31:22 +00:00
Beginnings of threads instead of processes, pluggable client specified at command line
This commit is contained in:
@@ -264,7 +264,7 @@ void vnc_guac_client_free_handler(guac_client* client) {
|
||||
}
|
||||
|
||||
|
||||
void guac_client_init(guac_client* client, const char* hostname, int port) {
|
||||
void guac_client_init(guac_client* client, int argc, char** argv) {
|
||||
|
||||
char* hostname_copy;
|
||||
|
||||
@@ -294,10 +294,10 @@ void guac_client_init(guac_client* client, const char* hostname, int port) {
|
||||
|
||||
/* Connect */
|
||||
hostname_copy = malloc(1024);
|
||||
strncpy(hostname_copy, hostname, 1024);
|
||||
strncpy(hostname_copy, argv[0], 1024);
|
||||
|
||||
rfb_client->serverHost = hostname_copy;
|
||||
rfb_client->serverPort = port;
|
||||
rfb_client->serverPort = atoi(argv[1]);
|
||||
|
||||
rfbInitClient(rfb_client, NULL, NULL);
|
||||
|
||||
|
Reference in New Issue
Block a user